Page Load

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
 
B

bruce barker

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top