is" />
开发者

aspx.net Adding meta tag sifts control ID

开发者 https://www.devze.com 2022-12-30 10:30 出处:网络
I haveaspx application then i added <META HTTP-EQUIV=\"CACHE-CONTROL\" CONTENT=\"NO-CACHE\"> to the head and after tha开发者_如何学运维t all controlls ID where shift up by 1 ctl03_lHeading -> is

I have aspx application then i added <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> to the head and after tha开发者_如何学运维t all controlls ID where shift up by 1 ctl03_lHeading -> is now ctl04_lHeading ..

Is this common behavior?

thanks


<META> in way you specified damages xhtml organisation of document, Try following:

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

(accent on closing slash). It is also recomended 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

精彩评论

暂无评论...
验证码 换一张
取 消