G
Guest
can someone help me, please? I have the following set on asp with VB code.
Dim dstProducts As DataSet
Dim dadProducts As SqlDataAdapter
dadProducts = New SqlDataAdapter( "SELECT ComputerName, IPAddress, SerialNo
FROM Computer WHERE ID = " & TextBox1.Text, conPubs)
It works fine up to here
dadProducts.Fill( dstProducts, "Computer")
dgEmployee.DataSource = dstProducts
dgEmployee.DataBind()
and then I get an error on dadProducts.Fille(dstProducts, "Computer"). It
only ocurrs if I change the field ID to some other field that is not an
integer. Is this a VB.NET limitation?
Dim dstProducts As DataSet
Dim dadProducts As SqlDataAdapter
dadProducts = New SqlDataAdapter( "SELECT ComputerName, IPAddress, SerialNo
FROM Computer WHERE ID = " & TextBox1.Text, conPubs)
It works fine up to here
dadProducts.Fill( dstProducts, "Computer")
dgEmployee.DataSource = dstProducts
dgEmployee.DataBind()
and then I get an error on dadProducts.Fille(dstProducts, "Computer"). It
only ocurrs if I change the field ID to some other field that is not an
integer. Is this a VB.NET limitation?