📄 button1.aspx
字号:
<html>
<head>
<script language="C#" runat=server>
void CommandBtn_Click(Object sender, CommandEventArgs e)
{
// Insert code to sort in ascending order here.
Message.Text = "You clicked the " + e.CommandName +
" - " + e.CommandArgument + " button.";
}
</script>
</head>
<body>
<form runat="server">
<h3>Button Example</h3>
Click on the command button.<br><br>
<asp:Button id="Button1"
Text="Sort Ascending"
CommandName="Sort"
CommandArgument="Ascending"
OnCommand="CommandBtn_Click"
runat="server"/>
<p>
<asp:label id="Message" runat="server"/>
</form>
</body>
</html>
[C++, JScript] No example is available in C++ or JScript. To view a Visual Basic or C# example, click the Language Filter button in the upper-left corner of the page.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -