Bind a property Demo (VB.net) : Bind a Property « Data Binding « ASP.Net






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>

           
       








Related examples in the same category

1.Bind DataList to Class Property (C#)