Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

response.redirect & page_load event

Status
Not open for further replies.

Waynest

Programmer
Jun 22, 2000
321
0
0
GB
asp.net 2, sql 2000

Hi

Response.redirect is giving me some jip....

if (Context.User.IsInRole("Administrator"))
{
Response.Redirect("~/GeneralPages/StoresList.aspx",false);
return;
}


If I set breakpoint in page load event of the page being redirected to it is never reached, although it IS reached if you navigate to the page using the site's menu control. How come?

TIA
 
it appears IsInRole("Administrator") returns false so it is never executed.

how is User defined? where are the roles defined? are you using impersionation?

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top