G
Guadala Harry
I need to add logic to the Page_Load event behind a site's default.aspx;
that will allow either default.aspx to load - OR load a completely different
page instead of default.aspx. The other pages to possibly load exist within
that site. The site owner says he wants to be able to specify any of his
existing pages as the site's default - and to change it whenever he wants.
So I'm adding a table to the db which will hold the site's "current
default.aspx". The Page_Load logic behind default.aspx will look to that
table to determine if it should continue to load itself or instead send a
different page altogether down to the browser.
I'd appreciate some advice on which of the redirection options I should use.
As I see it, here are the possibilities:
1. Response.Redirect
2. Server.Transfer
3. HttpContext.RewritePath
4. Server.Execute
? other possibilities?
So, if you had this requirement, how would you go about implementing it?
Thoughts? Rationalle?
Thanks!
that will allow either default.aspx to load - OR load a completely different
page instead of default.aspx. The other pages to possibly load exist within
that site. The site owner says he wants to be able to specify any of his
existing pages as the site's default - and to change it whenever he wants.
So I'm adding a table to the db which will hold the site's "current
default.aspx". The Page_Load logic behind default.aspx will look to that
table to determine if it should continue to load itself or instead send a
different page altogether down to the browser.
I'd appreciate some advice on which of the redirection options I should use.
As I see it, here are the possibilities:
1. Response.Redirect
2. Server.Transfer
3. HttpContext.RewritePath
4. Server.Execute
? other possibilities?
So, if you had this requirement, how would you go about implementing it?
Thoughts? Rationalle?
Thanks!