Posted on: 10/30/2013 8:25:33 PM | Views : 973

Hi,
<div>The dataset in my application reads an xml from the network and uses that as a datasource to load the data into my dataset. This XML file is generated every 15 mins (15 mins old data to the live) and is of 15 mb to 20 mb file size. Users search against this xml file and I want to make sure that the xml file is ready and not still being written the to the network folder. If it still writing then I would like to put the thread to sleep for couple of seconds or until it is fully written and try reading the file again. Here is what I currently have and this needs modification</div> <div> protected void BindData() { try { DataView dvGridData; AXGridView.PageIndexChanging += new GridViewPageEventHandler(AXGridView_PageIndexChanging); AXGridView.PagerTemplate = null; DataSet dsGridData = new DataSet(); dsGridData.ReadXml(Server.MapPath(Fil ...

Go to the complete details ...