Nicholas Paldino [.NET/C# MVP] wrote:
Dhananjay,
Well, you would want to use the HttpWebRequest/HttpWebResponse classes
to get the contents of the site. Once you do that, you can get the response
stream from the HttpWebResponse to feed the XmlDocument class to load the
document.
Once you have that, it's a simple matter of using the classes in
System.Data.? (where ? is specific for your database) to insert the data.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Dhananjay" <dh**********@yahoo.co.inwrote in message
news:11**********************@f1g2000cwa.googlegro ups.com...
hello everyone
I have a problem with xml and sql server 2k.
first thing i have a website named this->
http://en.infosites.org/info/keyword.
when i am entering a value for keyword like this ->
http://en.infosites.org/info/value now when this page opens in
browser(IE or Mozila FF) it shows only xml tags with some text as
contents. now i have to save this in sql server 2k i have a table in
that i have field as xml tags. i want to save entire thing which i
displayed in browser.
how to proceed i dont know. if anyone has idea the plz share with me .
its urgent
Thanks
Dhananjay
================================================== ====
hi Nicholas Paldino
i ahve passed this
public void page_load()
{
Uri uri = new Uri("http://de.wikipedia.org/wiki/indien");
if (uri.Scheme == Uri.UriSchemeHttp)
{
HttpWebRequest req =
(HttpWebRequest)HttpWebRequest.Create(uri);
req.Method = WebRequestMethods.Http.Get;
HttpWebResponse res = (HttpWebResponse)req.GetResponse();
StreamReader sr = new
StreamReader(res.GetResponseStream());
string tmp = sr.ReadToEnd();
res.Close();
this.txturl.Text = tmp;
}
}
but i have got error it is not opening this url. i have got problem in
webresponse it is showing null can u coorect and plz send me.
reply me asap
its urgent
Thanks
Dhananjay