is" />
开发者

aspx.net Adding meta tag sifts control ID

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜