M
mark.norgate
Hi
I have a problem with a repeater and a data connection.
In my Page_Load, I have the following code:
Dim connectionString As String =
WebConfig.ConnectionString
Dim connection As SqlConnection = New
SqlConnection(connectionString)
Dim adapter As SqlDataAdapter = New
SqlDataAdapter("SELECT applicationID FROM pvtProductApplication WHERE
productID = " + Request.QueryString("prodId"), connection)
Dim dataSet As DataSet = New DataSet()
connection.Open()
adapter.Fill(dataSet)
ApplicationRepeater.DataSource = dataSet
ApplicationRepeater.DataBind() /* error here */
connection.Close()
and I have a ApplicationRepeater_ItemCreated that also opens a data
connection and closes it. The error is raised as indicated above.
Can someone please help??
Thanks, Mark
I have a problem with a repeater and a data connection.
In my Page_Load, I have the following code:
Dim connectionString As String =
WebConfig.ConnectionString
Dim connection As SqlConnection = New
SqlConnection(connectionString)
Dim adapter As SqlDataAdapter = New
SqlDataAdapter("SELECT applicationID FROM pvtProductApplication WHERE
productID = " + Request.QueryString("prodId"), connection)
Dim dataSet As DataSet = New DataSet()
connection.Open()
adapter.Fill(dataSet)
ApplicationRepeater.DataSource = dataSet
ApplicationRepeater.DataBind() /* error here */
connection.Close()
and I have a ApplicationRepeater_ItemCreated that also opens a data
connection and closes it. The error is raised as indicated above.
Can someone please help??
Thanks, Mark