I have two dataset ds1 and ds2. Dataset ds1 have columns-"id","title" and ds2 have columns "id" and "timediff". I have to add these two dataset into ine and bind it to datalist which has columns "id",'title","timediff".
i merge the two dataset into one with the query
ds1.merge(ds2);
this will create two diff datatable in ds. When i bind it two datalist, it does not bind "timediff".
Mycode is below
The XMl which i convert into ds2
by using
strMyXml = "
XmlDocument xDoc = new XmlDocument();
xDoc.LoadXml(strMyXml);
// //Here the XML is prepared and loaded in XML DOM.
xDoc.Save(Server.MapPath("timeDiff.xml"));
////=====================read XML===========================//
DataSet ds2= new DataSet();
ds2.ReadXml(Server.MapPath("timeDiff.xml"));
ds2.AcceptChanges();
ds1.Merge(ds2);//merge two dataset
//=====================================================//
when i bind ds1 to data list it only bind first datatable not of second.
If anyone have the solution tell me.
Sam HobbsPosted Aug 22, 2010, 10:22 AM
Suthish NairPosted Aug 22, 2010, 5:17 AM