I have one web page, default.aspx, that does all the work for a web app.
All other pages user Server.Transfer with a query string to let defualt.aspx know what to do.
The reason for this is we want to keep the original file's URL in the Address bar of the web browser.
EX.
This page runs:
Server.Transfer("default.aspx?c1=1224&LinkID=1224")
The problem is default.aspx uses the output cache to greatly improve performance. Server.Transfer bypasses the HTTP Pipeline so no caching is executed.
See
If I use
Server.Execute("default.aspx?c1=1224&LinkID=1224") instead, the caching is executed as expected but I have read it is not recommended to use Server.Execute.
1) Is it OK to use Server.Execute in this situation?
2) Any suggestion on another way to accomplish this?
Thanks,
Gabe
All other pages user Server.Transfer with a query string to let defualt.aspx know what to do.
The reason for this is we want to keep the original file's URL in the Address bar of the web browser.
EX.
This page runs:
Server.Transfer("default.aspx?c1=1224&LinkID=1224")
The problem is default.aspx uses the output cache to greatly improve performance. Server.Transfer bypasses the HTTP Pipeline so no caching is executed.
See
If I use
Server.Execute("default.aspx?c1=1224&LinkID=1224") instead, the caching is executed as expected but I have read it is not recommended to use Server.Execute.
1) Is it OK to use Server.Execute in this situation?
2) Any suggestion on another way to accomplish this?
Thanks,
Gabe