<asp:Label ID="Label1" Text="Hello, <%= name %>" runat="server" />
protected string name = null; protected void Button1_Click() { string temp = this.TextBox1.Text; this.name = temp; }
<asp:Label ID="Label1" runat="server" />
protected string name = null; protected void Button1_Click() { string temp = this.TextBox1.Text; Label1.Text = "Hello, " + temp; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)