📄 tio-for.aspx
字号:
<%@ Page Language="C#" Debug="true" %>
<script runat="server">
void Page_Load()
{
if(Page.IsPostBack)
{
lblMessage1.Text = "";
for(
int intLineLoopCounter = 1;
intLineLoopCounter<=Convert.ToInt32(NumberAttendees.SelectedItem.Value);
intLineLoopCounter++)
{
lblMessage1.Text += "Attendee Name___________ <br /><br />";
lblMessage1.Text += "Attendee Age__________ <br /><br /><hr /><br />";
} //end for intLineLoopcounter
} //end if(Page.IsPostBack)
} //end Page_Load
</script>
<html>
<head>
<title>For Example</title>
</head>
<body>
<form runat="server">
Select the number of attendees:<br />
<br />
<asp:dropdownlist id="NumberAttendees" runat="server">
<asp:listitem>1</asp:listitem>
<asp:listitem>2</asp:listitem>
<asp:listitem>3</asp:listitem>
</asp:dropdownlist>
<br />
<br />
<input type="submit" value="Submit Query" />
<br />
<br />
<asp:label id="lblMessage1" runat="server"></asp:label>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -