ASP.NET HTML 控件 Label

asp.net html 控件  label

<script  runat="server">
sub submit(sender as object, e as eventargs) 
   label1.text=txt1.text
end sub
</script>


<!doctype html>
<html>
<body>

<form runat="server">
write some text:
<asp:textbox id="txt1" width="200" runat="server" />
<asp:button id="b1" text="copy to label" onclick="submit" runat="server" />
<p><asp:label id="label1" runat="server" /></p>
</form>

</body>
</html>

相关文章