ASP.NET HTML 控件 Textbox

asp.net html 控件 textbox

<script  runat="server">
sub submit(sender as object, e as eventargs)
   lbl1.text="your name is " & txt1.text
end sub
</script>


<!doctype html>
<html>
<body>

<form runat="server">
enter your name:
<asp:textbox id="txt1" runat="server" />
<asp:button onclick="submit" text="submit" runat="server" />
<p><asp:label id="lbl1" runat="server" /></p>
</form>

</body>
</html>

相关文章