httpCookie cause the page not to load
Posted
by jvcoach23
on Stack Overflow
See other posts from Stack Overflow
or by jvcoach23
Published on 2010-04-21T14:24:46Z
Indexed on
2010/04/22
17:13 UTC
Read the original article
Hit count: 238
visual-studio-2010
|httpcookie
I'm using VS 2010, vb.net and asp 3.5. I have a simple default.aspx page that has
Dim ctx As HttpContext = HttpContext.Current
Dim cookie As HttpCookie = ctx.Request.Cookies("SessionGUID")
Me.lbl1.Text = cookie.Value.ToString
the page loads fine when running it from within VS, but when i build the site and run the page, it doesn't load.. it doesn't give me an error, but nothing shows up.
This is what the view source looks like
HTML>HEAD> META content="text/html; charset=windows-1252" http-equiv=Content-Type>/HEAD> BODY>/BODY>/HTML>
I took out the < in the tags so that it would display here...
If i take out the Me.lbl1.Text = cookie.Value.ToString the page loads fine.. All i'm putting to the page is some text and the label control.
anyone have any ideas
© Stack Overflow or respective owner