Click to See Complete Forum and Search --> : xml data source in visual studio .net


haynbrian
05-06-2003, 12:21 PM
Hello all,

I'm trying to create a data source (code only, no drag and drop from the data tab) and am having a hard time with it.

Below is what I have been able to find to make it work, but for some reason I can't get it to work.


Dim myDataSet as New DataSet()
myDataSet.ReadXml(Server.MapPath("accounts.xml"))
dgAccounts.DataSource = myDataSet
dgAccounts.DataBind()

If anyone has any suggestions I would really appreciate it.


Thanks,

Brian

khalidali63
05-06-2003, 03:53 PM
Your question is better suited for ASP section,try it there.

haynbrian
05-06-2003, 04:18 PM
okay, thanks