Textbox 3

asp.net html 控件 textbox 3

<script  runat="server">
sub change(sender as object, e as eventargs)
lbl1.text="you changed text to " & txt1.text
end sub
</script>


<!doctype html>
<html>
<body>

<form runat="server">
change text
<asp:textbox id="txt1" runat="server"
text="hello world!" ontextchanged="change" autopostback="true"/>
<p><asp:label id="lbl1" runat="server" /></p>
</form>

</body>
</html>
相关文章