When I update an ASPX page with simple text change, it reponds very slowly the next time i call the page from the web. I'm running on windows 7, with IIS7. It seems to me that the page has to recomplile the next time i call it from the browser. any help?
A ASP.Net page consits of thre parts:
- code before (page.aspx)
- code behind (page.aspx.(cs|vb|...))
- designer code (page.aspx.designer.(cs|vb|...))
You need to manually recompile depending on which part you change. The code behind and designer part needs to be compiled.
You can change the code before part and it will manually recompile (but only the code before).
You should use resx files if you are just changeing text. They can be used by resourcekeys or in your code behind. Changeing a resx does not slow down your app.
Disable recompilation - you need to edit web.config:
<configuration> <system.web> <compilation batch="false"> </system.web> </configuration>