T
Tony Girgenti
Hello
I developed and tested a web application using VS.NET 2003, VB, .NET
Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1. It uses a web form.
I used the XML Designer to create an XML .XSD Schema to produce a Dataset.
In looking for a way to start adding data to the dataset programmatically, i
found this method in just about every thing i read.
Dim tripsDataSet As DataSet
tripsDataSet = New DataSet("tripsDS")
tripsDataSet.ReadXmlSchema("c:\inetpub\wwwroot\CoyneTruckWebServices\tripsds.xsd")
tripsDataTbl = tripsDataSet.Tables("tripsTable")
Dim foundTrips() As DataRow
When i try to enter an assignment as below, the IDE will not give me the
intellisense "NewRow()" at the end of the "foundTrips = tripsDataTbl"
statement. It only give me a "GetType".
foundTrips = tripsDataTbl.NewRow()
I i run the program anyway, It bombs out with "No default member found for
type 'DBNull'" on this line
foundTrips(tripidx)("TripDate") = dateAttr.ToString("yyyyMMdd").
dateAttr does have something in it.
How do i get this to work ? I've been trying to figure this out for days.
Any help would be gratefully appreciated.
Thanks,
Tony
I developed and tested a web application using VS.NET 2003, VB, .NET
Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1. It uses a web form.
I used the XML Designer to create an XML .XSD Schema to produce a Dataset.
In looking for a way to start adding data to the dataset programmatically, i
found this method in just about every thing i read.
Dim tripsDataSet As DataSet
tripsDataSet = New DataSet("tripsDS")
tripsDataSet.ReadXmlSchema("c:\inetpub\wwwroot\CoyneTruckWebServices\tripsds.xsd")
tripsDataTbl = tripsDataSet.Tables("tripsTable")
Dim foundTrips() As DataRow
When i try to enter an assignment as below, the IDE will not give me the
intellisense "NewRow()" at the end of the "foundTrips = tripsDataTbl"
statement. It only give me a "GetType".
foundTrips = tripsDataTbl.NewRow()
I i run the program anyway, It bombs out with "No default member found for
type 'DBNull'" on this line
foundTrips(tripidx)("TripDate") = dateAttr.ToString("yyyyMMdd").
dateAttr does have something in it.
How do i get this to work ? I've been trying to figure this out for days.
Any help would be gratefully appreciated.
Thanks,
Tony