to t...">

Aspx.net Add sifting control id meta tag

I have an aspx app, after which I added <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

to the head and after that all the ids of the controls where they are shifted by 1 ctl03_lHeading -> are now ctl04_lHeading ..

Is this normal behavior?

thanks

+2


a source to share


1 answer


<META> in the order you specified damage the xhtml organization of the document, Try this:

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"/>;

      

(accent on closing slash). It is also recommended to use ASP.Net @OutputCache directive



or something like this:

 <%
        Response.CacheControl = "no-cache";
        Response.AddHeader("pragma", "no-cache");
        Response.AddHeader("cache-control", "no-cache");
  %>

      

0


a source







All Articles