M
mollyf
I have a web application where I have my users log in and it takes them
to default.aspx. On that page, I have 2 user controls. Everything
works fine the first time a person logs in. I have a logout button on
one of the user controls which takes the user back to the login screen.
If the user tries to log in again without closing the browser window,
the Page_Prerender in the user control gets fired before the Page_Load
in default.aspx and because the datagrid on the user control relies on
values set in a dropdownlist box on default.aspx, the code breaks
because nothing is set.
How do I force default.aspx to load first every time? Why are things
loading differently the second time the user logs in? I set
breakpoints through the code to verify this.
Thanks.
Molly J. Fagan
Oklahoma Foundation for Medical Quality
to default.aspx. On that page, I have 2 user controls. Everything
works fine the first time a person logs in. I have a logout button on
one of the user controls which takes the user back to the login screen.
If the user tries to log in again without closing the browser window,
the Page_Prerender in the user control gets fired before the Page_Load
in default.aspx and because the datagrid on the user control relies on
values set in a dropdownlist box on default.aspx, the code breaks
because nothing is set.
How do I force default.aspx to load first every time? Why are things
loading differently the second time the user logs in? I set
breakpoints through the code to verify this.
Thanks.
Molly J. Fagan
Oklahoma Foundation for Medical Quality