Author: cduance | Posted on: 11/7/2009 11:04:27 AM | Views : 470

I have been looking into reading a field that I want to be displayed as part of the page as it is generated but I get yourEncodedHtmlFromDatabase has not been declared.
From default.aspx

<div id="widget">
    <%= System.Web.HttpUtility.HtmlDecode(yourEncodedHtmlFromYouDatabase) %>
</div>
From default.aspx.vb
Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
Dim yourEncodedHtmlFromYouDatabase As String = "<bodybody></bodybody>"
End Sub

The idea is to have a select statement to get the field and load it into that variable and then have it displayed as part of the page.

...

Go to the complete details ...