Color Property binding : Property Binding « Data Binding « ASP.Net






Color Property binding


<%@ 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.DataBind method example