Page Load

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi guys,
I have session variable (session["loggedin"]) with values true or false. On
the page load event, i entered
if (HttpContext.Current.Session["loggedin"].ToString().Equals("true")
{
Response.Redirect("http://localhost/lhw/home.aspx");
Response.End();
}
Now i have a calendar control with dayrender event. I am thinking that the
response.end() should really not let the control to load however it keep
giving me error trying to find the dataview. Is there any solution for it.

Thanks.

Manny
 
move your test and redirect to OnInit.

-- bruce (sqlwork.com)



| Hi guys,
| I have session variable (session["loggedin"]) with values true or false.
On
| the page load event, i entered
| if (HttpContext.Current.Session["loggedin"].ToString().Equals("true")
| {
| Response.Redirect("http://localhost/lhw/home.aspx");
| Response.End();
| }
| Now i have a calendar control with dayrender event. I am thinking that the
| response.end() should really not let the control to load however it keep
| giving me error trying to find the dataview. Is there any solution for it.
|
| Thanks.
|
| Manny
 
Back
Top