P
Peter Theill
Hi,
I'm trying to include the content of a request into an Xml document:
if (System.Web.HttpContext.Current.Session["user_id"] != null) {
XmlDocument d = new XmlDocument();
d.Load(new XmlTextReader("http://localhost/page.aspx"));
}
The requested page (page.aspx) is an XHTML page so I'm able to parse it as a
document. However if I want to use the current session in that request to
'page.aspx' how would I do that?
In "page.aspx" I reference a UserControl having this code line:
string userId = (string)System.Web.HttpContext.Current.Session["user_id"];
It's empty even though I check for it (first linie) just before requesting
the page. Could anyone help?
// pt
I'm trying to include the content of a request into an Xml document:
if (System.Web.HttpContext.Current.Session["user_id"] != null) {
XmlDocument d = new XmlDocument();
d.Load(new XmlTextReader("http://localhost/page.aspx"));
}
The requested page (page.aspx) is an XHTML page so I'm able to parse it as a
document. However if I want to use the current session in that request to
'page.aspx' how would I do that?
In "page.aspx" I reference a UserControl having this code line:
string userId = (string)System.Web.HttpContext.Current.Session["user_id"];
It's empty even though I check for it (first linie) just before requesting
the page. Could anyone help?
// pt