Logging out problem

Topics: Developer Discussion
Apr 9, 2007 at 4:37 PM
Logging out from the events page returns this error.

Server Error in '/' Application.
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /calendar.aspx

Apr 11, 2007 at 7:44 AM
check usercontrols/login.ascx and the function Logoutbtn_Click, you can redirect wherever you want.
Apr 11, 2007 at 1:19 PM

Plaid wrote:
check usercontrols/login.ascx and the function Logoutbtn_Click, you can redirect wherever you want.


This is the existing code. I believe this error is also on the issue tracker page.

<script runat="server">

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
If CStr(Request("ReturnURL")) Is Nothing Then
Dim a As String = "Login.aspx?ReturnURL=~/default.aspx"
Response.Redirect(a)
End If
End Sub
</script>