Mega Code Archive

 
Categories / ASP.Net / Data Binding
 

Bind a property Demo (VB net)

<%@ Page Language="VB" %> <html> <head>    <title>Simple DataBinding Example</title>    <script runat="server">       Dim FontColor As String       Sub Page_Load()          FontColor = "Red"          DataBind()       End Sub    </script> </head> <body>    <h1>Simple DataBinding Example</h1>    The value for FontColor is        <font color="<%# FontColor %>"><%# FontColor %></font>. </body> </html>