日期:2013-09-13 浏览次数:20446 次
<script language="VB" runat="server"> Sub Page_Load(sender As Object, e As EventArgs) { If User.Identity.IsAuthenticated Then welcome.Text = "欢迎" + User.Identity.Name Else ' 尚未登录,添加一个指向登录页的链接 welcome.Text = "请登录!" welcome.NavigateUrl = "signin.aspx" End If End Sub</script><asp:HyperLink id="welcome" runat="server" maintainstate="false"></asp:HyperLink>
<script language="C#" runat="server"> void Page_Load(object sender, EventArgs e) { if (User.Identity.IsAuthenticated) { welcome.Text = "欢迎" + User.Identity.Name; } else { // 尚未登录,添加一个指向登录页的链接 welcome.Text = "请登录!"; welcome.NavigateUrl = "signin.aspx"; } }</script><asp:HyperLink id="welcome" runat="server" maintainstate="false"></asp:HyperLink>
Sub Application_BeginRequest(sender As [Object], e As EventArgs) Dim tabIndex As Integer = 0 Dim tabId As Integer = 0 ' 从查询字符串获取 TabIndex If Not (Request.Params("tabindex") Is Nothing) Then tabIndex = Int32.Parse(Request.Params("tabindex")) End If ' 从查询字符串获取 TabID If Not (Request.Params("tabid") Is Nothing) Then &nbs