S
Shapper
Hello,
I created a code in VB which fills div's in HTML with content stored in
a database using a dataset:
' Populate Dynamic Content Div's
For Each row As DataRow In dsContent("index").Tables(0).Rows
Dim div As HtmlGenericControl = CType(Page.FindControl("d" &
row("name").ToString), HtmlGenericControl)
If row("content_" & Session("culture")).ToString <> "" Then
div.InnerHtml = row("content_" & Session("culture")).ToString
Else
div.InnerHtml = " "
End If
Next
I am having huge problems in making this work with a datareader.
It's not just the "For" loop but also the code line:
CType(Page.FindControl("d" & row("name").ToString), HtmlGenericControl)
Can someone help me out?
Thank You,
Miguel
I created a code in VB which fills div's in HTML with content stored in
a database using a dataset:
' Populate Dynamic Content Div's
For Each row As DataRow In dsContent("index").Tables(0).Rows
Dim div As HtmlGenericControl = CType(Page.FindControl("d" &
row("name").ToString), HtmlGenericControl)
If row("content_" & Session("culture")).ToString <> "" Then
div.InnerHtml = row("content_" & Session("culture")).ToString
Else
div.InnerHtml = " "
End If
Next
I am having huge problems in making this work with a datareader.
It's not just the "For" loop but also the code line:
CType(Page.FindControl("d" & row("name").ToString), HtmlGenericControl)
Can someone help me out?
Thank You,
Miguel