M
moondaddy
I have a site where I have only one page and lots of user controls. Rather
than passing parameters into the page (mysite/default.aspx?MenuID=123), I
pass in a url like this (mysite/products-greenwidgets.aspx). then in the
global.asax I intercept the url coming in and convert it to a parameter url
like this (mysite/default.aspx?MenuID=greenwidgets). then when the
default.aspx page loads, it passes "greenwidgets" to the database and gets a
product listing for the category of "greenwidgets". I could just as easily
pass a parameter like "home" where it would then put the home page user
control into the content section of default.aspx instead of the
productlisting user control.
OK, all that being said, can I cache each version of the page on the server,
then in the global.asax intercept the incoming url and return the proper
cached version of default.aspx. It seems that if I could do this a lot
steps would be saved and it would run much faster.
than passing parameters into the page (mysite/default.aspx?MenuID=123), I
pass in a url like this (mysite/products-greenwidgets.aspx). then in the
global.asax I intercept the url coming in and convert it to a parameter url
like this (mysite/default.aspx?MenuID=greenwidgets). then when the
default.aspx page loads, it passes "greenwidgets" to the database and gets a
product listing for the category of "greenwidgets". I could just as easily
pass a parameter like "home" where it would then put the home page user
control into the content section of default.aspx instead of the
productlisting user control.
OK, all that being said, can I cache each version of the page on the server,
then in the global.asax intercept the incoming url and return the proper
cached version of default.aspx. It seems that if I could do this a lot
steps would be saved and it would run much faster.