G
Guest
I have a Session variable I need to check the value of. If it is value a then
redirect to some page. I need to implement this in a user control that is on
all the relevent pages.
I placed the if and redirect statement within the page_load of the user
control. However, when you try to access any page that has the user control
it simply loads for minutes and never actually redirects.
What am I missing with executing the response.redirect from a user control's
page_load event? The user control is a simple table and a few public
properties that build a page header.
Should I be placing this code somewhere else. I thought about writing a base
class for the page object and overriding one of the events to see if it
eleviates the problem.
Any ideas and suggestions appreciated in advance.
Marty U.
redirect to some page. I need to implement this in a user control that is on
all the relevent pages.
I placed the if and redirect statement within the page_load of the user
control. However, when you try to access any page that has the user control
it simply loads for minutes and never actually redirects.
What am I missing with executing the response.redirect from a user control's
page_load event? The user control is a simple table and a few public
properties that build a page header.
Should I be placing this code somewhere else. I thought about writing a base
class for the page object and overriding one of the events to see if it
eleviates the problem.
Any ideas and suggestions appreciated in advance.
Marty U.