ASP.NET HTML 控件 linkbutton

asp.net html 控件 linkbutton

<script  runat="server">

sub lblclick(sender as object, e as eventargs) 
   label1.text="you clicked the linkbutton control"
end sub
</script>


<!doctype html>
<html>
<body>

<form runat="server">
<asp:linkbutton text="click me!" onclick="lblclick" runat="server" />
<p><asp:label id="label1" runat="server" /></p>
</form>

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