ASP.Net/Data Binding/DataBind Method — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 18:30, 26 мая 2010
DataBind() function
<source lang="csharp">
<%@ Page Language="vb" %> <html>
<head> <title>DataBind method example</title> <script runat="server"> Dim Color As System.Drawing.Color = System.Drawing.Color.Red Sub Page_Load() Message.Text = "ForeColor is: " & Color.Name DataBind() End Sub </script> </head>
<body>
<asp:label id="Message" ForeColor="<%# Color %>" runat="server"/>
</body> </html>
</source>