M
moondaddy
I have a products catalogue that I'm putting online and there will be
between 20 to 50 different pages of products. Each page contains a datagrid
of products for a given category. However, the categories change from time
to time so the list of categories must be dynamic and database driven (as is
the menu used to select the category to load in the products page). The way
I see it there's 2 possible options. dynamically create each aspx page when
its not found in the system cache (for example if category 22 was selected
from the navigation menu then build a page called Cat_22.aspx, cache it and
then return it to the client), or build one page with one datagrid and cache
each different instance of it (one instance per category as they are
requested). If the 2nd option is the way to go, then I have 2 pointed
questions: 1) How do I cache different versions of this page and 2) How
do I call a specific version from the requesting browser?
Lastly, if it makes any difference, I'm using VS2003 and doing all of this
in a frameset where the nav menu is a web user control in the left-hand
frame called contents and the products are being displayed in the right hand
frame called main. So far I've been able to wire things up OK where the
menu can pass a category ID to a hidden control on the products page and
then call a button click event on the products page to do a postback and
return a datagrid with the products for that category. But in the future I
think this must be done differently since when a user selects a category
from the nav menu, an html page could be in the main frame such as the home
page or about us page. Therefore I would have to pass a url in the target
frame like:
Products.aspx?CategID=22 or something like that (although I've never used
this technique before).
Can someone please advise? Thanks.
between 20 to 50 different pages of products. Each page contains a datagrid
of products for a given category. However, the categories change from time
to time so the list of categories must be dynamic and database driven (as is
the menu used to select the category to load in the products page). The way
I see it there's 2 possible options. dynamically create each aspx page when
its not found in the system cache (for example if category 22 was selected
from the navigation menu then build a page called Cat_22.aspx, cache it and
then return it to the client), or build one page with one datagrid and cache
each different instance of it (one instance per category as they are
requested). If the 2nd option is the way to go, then I have 2 pointed
questions: 1) How do I cache different versions of this page and 2) How
do I call a specific version from the requesting browser?
Lastly, if it makes any difference, I'm using VS2003 and doing all of this
in a frameset where the nav menu is a web user control in the left-hand
frame called contents and the products are being displayed in the right hand
frame called main. So far I've been able to wire things up OK where the
menu can pass a category ID to a hidden control on the products page and
then call a button click event on the products page to do a postback and
return a datagrid with the products for that category. But in the future I
think this must be done differently since when a user selects a category
from the nav menu, an html page could be in the main frame such as the home
page or about us page. Therefore I would have to pass a url in the target
frame like:
Products.aspx?CategID=22 or something like that (although I've never used
this technique before).
Can someone please advise? Thanks.