Last post Jul 04, 2011 10:17 AM by XIII
Jul 04, 2011 09:36 AM|nazanin_a|LINK
i want to read from http://irimo.ir/farsi/RSS/xml.asp and save data in a File.xml in my root of site, would you please help me?
Jul 04, 2011 09:45 AM|XIII|LINK
that's easily done via the XmlDocument class. I created this working sample:
public partial class DownloadXmlAndSave : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
XmlDocument doc = new XmlDocument();
Jul 04, 2011 10:13 AM|nazanin_a|LINK
thank you i put it in my page load of master page and sometimes it has error (runtime time out)???????????????
Jul 04, 2011 10:17 AM|XIII|LINK
sometimes it has error (runtime time out)???????????????
I noticed it takes a while to download the xml so it could well be that it takes so much time on your end, slow internet connection, that the page simply times out.