XmlDocument.Load supports loading document from a given URL.
Then you could extract that ID and maybe put it in a session variable:
XmlDocument doc = new XmlDocument();
doc.Load(
http://myurl.com?param=value);
string id = doc.DocumentElement.FirstChild.InnerText;
// Assume in System.Web.UI.Page context.
base.Session ["user_id"] = id;
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Kenneth Johansen" <kj****@hotmail.com> wrote in message
news:51**************************@posting.google.c om...
Is there a way i can read xml from a webpage.
The situation is that i have to type in an Url with some parameters (a
login), when the page returns, it returns an ID that i have to use
through the session, the ID is retuned in XML format, and this is what
i need to read.
The Xml page looks like this :
________________________
<?xml version="1.0" encoding="ISO-8859-1" ?>
<logon>
<user_id>440842875</user_id>
</logon>
________________________