<div class="loginControl"> <dx:ASPxLabel ID="lblUserName" runat="server" Text=""> <dx:ASPxButton ID="btnLogOut" runat="server" Text="Log Out" Border-BorderStyle="None">
Public Class Root Inherits System.Web.UI.MasterPage Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Session("New") IsNot Nothing Then lblUserName.Text += Session("New").ToString() Else Response.Redirect("wf_Login.aspx") End If End Sub Protected Sub btnLogOut_Click(sender As Object, e As EventArgs) Handles btnLogOut.Click Session("New") = Nothing Response.Redirect("wf_Login.aspx") End Sub End Class
lblUserName.Text += Session("New").ToString()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)