D
Des
I am new to .NET so this code will not be the best. I need to read
fields from a single record and place them into individual variables.
What I have is this and the error is
BC30311: Value of type 'System.Data.DataColumn' cannot be converted to
'String'.
<%@ Import namespace="System.Data" %>
<%@ Import namespace="System.Data.SqlClient" %>
<%
ID = request("ProdID")
Dim strConn as String = ConfigurationSettings.AppSettings("Thermos")
Dim objConn as new SqlConnection(strConn)
dim strItem as String = "SELECT * FROM Products WHERE ProductID = " &
ID
dim Adapter as new SqlDataAdapter(strItem,objConn)
dim DataSet as new DataSet()
Adapter.Fill(DataSet, "ITEM")
Dim Description as String
Description = DataSet.Tables("ITEM").Columns("Description")
%>
<html> ..... </html>
Any help on this one please
Desmond.
fields from a single record and place them into individual variables.
What I have is this and the error is
BC30311: Value of type 'System.Data.DataColumn' cannot be converted to
'String'.
<%@ Import namespace="System.Data" %>
<%@ Import namespace="System.Data.SqlClient" %>
<%
ID = request("ProdID")
Dim strConn as String = ConfigurationSettings.AppSettings("Thermos")
Dim objConn as new SqlConnection(strConn)
dim strItem as String = "SELECT * FROM Products WHERE ProductID = " &
ID
dim Adapter as new SqlDataAdapter(strItem,objConn)
dim DataSet as new DataSet()
Adapter.Fill(DataSet, "ITEM")
Dim Description as String
Description = DataSet.Tables("ITEM").Columns("Description")
%>
<html> ..... </html>
Any help on this one please
Desmond.