4
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by carobee
0

hi, when session expires i want to give message and send them to my login page.for this where i have to write the code.


thank you

how if like this :

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If session("UserID").ToString.Trim = "" Then
            Response.Redirect("Login.aspx")
            Exit Sub
        End If        
    End Sub
0

how if like this :

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If session("UserID").ToString.Trim = "" Then
            Response.Redirect("Login.aspx")
            Exit Sub
        End If        
    End Sub

thank you,it is fine.i used it
thank you

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.