?? result.aspx
字號(hào):
<html>
<head>
<title>Result</title>
<script runat="server" language="C#">
void Page_Load()
{
// Read score into Hashtable
Hashtable score = HashFile.ReadHashtableFromFile(Server.MapPath("score.txt"));
// Read channel into Hashtable
Hashtable channel = HashFile.ReadHashtableFromFile(Server.MapPath("channel.txt"));
foreach(object s in channel.Keys)
{
if(score[(string)s] == null)
{
result.Items.Add((string)channel[s] + ":0");
}
else
{
result.Items.Add((string)channel[s] + ":" + (string)score[(string)s]);
}
}
}
</script>
</head>
<body>
<h3>謝謝參與,當(dāng)前的評(píng)選結(jié)果為</h3>
<form id="form2" runat="server">
<asp:ListBox id="result" width="100"
rows="10" runat="server" />
</form>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -