Re: Opposite of RedirectFromLoginPage? Preset page to direct to...
From: Marcio Kleemann (notavailable)
Date: 05/27/04
- Next message: i23bam: "Re: Converting Win32 API to VB.NET for Folder Security"
- Previous message: Joseph E Shook [MVP - ADSI]: "Re: Double number of calls when Basic Authentication?"
- In reply to: Nugs: "Opposite of RedirectFromLoginPage? Preset page to direct to..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 26 May 2004 15:11:37 -0700
You can set the authentication cookie and then use response redirect, as
follows (sorry, this is C# but you should be able to easily translate):
FormsAuthentication.SetAuthCookie(txtUserID.Text,false);
Response.Redirect("PageYouWant.aspx",true);
"Nugs" <duncsjunk@comcast.net> wrote in message
news:H-ednQ7OLPFtfS7dRVn-gw@comcast.com...
> How can I set the page that the login page needs to send the user to. I
have
> a login page that does the RedirectFromLoginPage method, but I am now
> needing to explicitly tell the login page where to go instead of it
looking
> for the previously requested page. How would I do that?
>
> My code is as follows:
> <script language="vb" runat="server">
> Sub Login_Click(Src As Object, E As EventArgs)
> IF eon_login.Recordcount > 0 then
> FormsAuthentication.RedirectFromLoginPage(txtUserID.Text,
> chkPersistLogin.Checked)
> Else
> ErrorMsg.InnerHtml = "Login Failed! Please try again."
> End If
> End Sub
> </script>
>
> Thanks
> Nugs (ASP.NET Newbie)
>
>
- Next message: i23bam: "Re: Converting Win32 API to VB.NET for Folder Security"
- Previous message: Joseph E Shook [MVP - ADSI]: "Re: Double number of calls when Basic Authentication?"
- In reply to: Nugs: "Opposite of RedirectFromLoginPage? Preset page to direct to..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|