HI Mudassar Khan,
i have encountred issue while sending search request
when i am sending requesting to server i need to authenticate my request for that i am passing credential in url but when i am using this url in any browser it automatically log in using credential that i am passing in the url and return search result[ i.e xml file]. however ,if i am using it in asp.net i am not able to get search result instead i get the login page.
here is code snippet[url which i have mentioned here it work fine but does not work with my url there is issue]
WebRequest req = HttpWebRequest.Create("http://www.w3schools.comdo/books.xml");
WebResponse res = req.GetResponse();
StreamReader sr = new StreamReader(res.GetResponseStream());
string str = sr.ReadToEnd();
XmlDocument doc = new XmlDocument();
doc.LoadXml(str);
XmlTextWriter writer = new XmlTextWriter("D://test1//test.xml", null);
writer.Formatting = Formatting.Indented;
doc.Save(writer);
Response.Write(doc);
Thanks &Regards