<script language="C#" runat="server">
void Page_Load(Object Src, EventArgs E) {
Random randomGenerator = new Random(DateTime.Now.Millisecond);
int randomNum = randomGenerator.Next(0, 3);
switch(randomNum) {
case 0:
Name.Text = "Scott";
break;
case 1:
Name.Text = "Fred";
break;
case 2:
Name.Text = "Adam";
break;
}
AnchorLink.NavigateUrl = "controls_navigationtarget.aspx?name=" + System.Web.HttpUtility.UrlEncode(Name.Text);
}
</script>
<body>
<h3><font face="宋体">执行页导航(方案 1)</font></h3>
<p>
此示例说明如何生成 HTML 定位点标记。当客户在浏览器内单击该标记时,该标记将使客户定位到新的一页。
<p>
<hr>
<p>
<asp:hyperlink id="AnchorLink" font-size=24 runat=server>
您好 <asp:label id="Name" runat=server/> 请单击此链接!
</asp:hyperlink>
</body>
</html>
象这样南懂的我应该找哪些方面的书看呀,我不看懂