Hi,
On this code
After loading, the initial value for "empl" is "test"PHP Code:<script language="VB" runat="server">
Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs)
empl.Text = "test"
End Sub
Sub display(ByVal sender As Object, ByVal e As EventArgs)
Response.Write(empl.Text)
End Sub
</script>
<body onLoad="Page_Load" runat=server>
<form id="form1" runat="server">
<asp:TextBox id="empl" runat="server"/>
<asp:Button id=Button1 Text="submit" runat="server" OnClick="display" />
</form>
</body>
But, when I type something else in the textbox and submit, how come the value is still test?
How can I change the textbox value after typing?
Thx


Reply With Quote
Bookmarks