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
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