
Partial Class TopBanner
    Inherits System.Web.UI.UserControl

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnlogout.Click
        Session.Abandon()
        Session("Bulkmail") = Nothing
        Response.Redirect("BulkmailLogin.aspx")
    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            If Session("Bulkmail") = Nothing Then
                btnlogout.Visible = False
            End If

        End If
    End Sub
End Class
