S
Shapper
Hello,
I have this ASP.NET / VB code which uses a dataset:
----
For Each row As DataRow In dsContent("index").Tables(0).Rows
Dim div As HtmlGenericControl =
CType(Page.FindControl(row("name").ToString), HtmlGenericControl)
If row("content").ToString <> "" Then
div.InnerHtml = row("content").ToString
Else
div.InnerHtml = " "
End If
Next
----
How can I change this code to use a DataReader names drContent instead
of dsContent?
I am having problems with the "For" loop and then with the "row".
Thank You,
Miguel
I have this ASP.NET / VB code which uses a dataset:
----
For Each row As DataRow In dsContent("index").Tables(0).Rows
Dim div As HtmlGenericControl =
CType(Page.FindControl(row("name").ToString), HtmlGenericControl)
If row("content").ToString <> "" Then
div.InnerHtml = row("content").ToString
Else
div.InnerHtml = " "
End If
Next
----
How can I change this code to use a DataReader names drContent instead
of dsContent?
I am having problems with the "For" loop and then with the "row".
Thank You,
Miguel