asp.net - To find out whether a *.aspx page was changed -


is there way in asp.net find out, wheter *.aspx page changed.

i need refresh cached static variable in base-page constructor.

thank , best regards.

presumably know asp.net page has changed (because you've uploaded it). why not, @ point, recycle app pool or cause app pool recycle (such modifying web.config)?

this question...

what causes application pool in iis recycle?

... talks causes app pool recycle. msdn article...

http://blogs.msdn.com/b/tess/archive/2006/08/02/asp-net-case-study-lost-session-variables-and-appdomain-recycles.aspx

... has excellent write subject.

when upload new .aspx should recompilation, might not app pool recycle. number of recompilations before recycle controlled config. see tess' article (above) details snippet gives is...

[recycling occurs when] number of re-compilations (aspx, ascx or asax) exceeds limit specified setting in machine.config or web.config (by default set 15)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -