ASP.NET HTML 控件 Button 2

asp.net html 控件 button 2

<script  runat="server">
sub submit(source as object, e as eventargs)
   button1.style("background-color")="#0000ff"
   button1.style("color")="#ffffff"
   button1.style("width")="200px"
   button1.style("cursor")="pointer"
   button1.style("font-family")="verdana"
   button1.style("font-weight")="bold"
   button1.style("font-size")="14pt"
   button1.text="you clicked me!"
end sub
</script>


<!doctype html>
<html>
<body>

<form runat="server">
<asp:button id="button1" text="click me!" runat="server" onclick="submit" />
</form>

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