Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: MyLabel.DataBind()?


Message #1 by "Lynn Curtner" <lynn.curtner@p...> on Tue, 4 Jun 2002 18:49:04
<asp:Label id=Label1 runat="server" Text='<%# myString %>'></asp:Label>

in the HTML above myString is a variable defined in the code behind with a 
statement such as...

static protected string myString = "This is the text for the label";

Of course, don't forget to call Label1.DataBind() when the value of 
myString has been updated.

  Return to Index