ASP.NET HTML 控件 Literal 2

asp.net html 控件 literal 2

<script  runat="server">
sub submit(sender as object, e as eventargs)
   literal1.text="i love asp.net!"
end sub
</script>


<!doctype html>
<html>
<body>

<form runat="server">
<asp:literal id="literal1" text="i love asp!" runat="server" />
<br><br>
<asp:button text="change text" onclick="submit" runat="server" />
</form>

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