Ask a Question related to ASP.NET Security, Design and Development.
-
Nugs #1
Opposite of RedirectFromLoginPage? Preset page to direct to...
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(txtUserI D.Text,
chkPersistLogin.Checked)
Else
ErrorMsg.InnerHtml = "Login Failed! Please try again."
End If
End Sub
</script>
Thanks
Nugs (ASP.NET Newbie)
Nugs Guest
-
Solution to Forms Authentication redirecting to bogus default.aspx page with RedirectFromLoginPage
hi, i've read a lot of posts here about people who ran into problems using forms authentication, and the RedirectFromLoginPage() method, which... -
Dealing with direct acess of page, not passingstring
the first one seems like the easiest method and worked like a charm. Thanks for your reply! -
Page Through Image with Direct Link
Does anyone know of a cf tag that can do something similar to this page: http://www.alacasting.com/book6.asp Basically you choose a catalog and... -
direct to another page
After submitting a form, I would like to redirect to another page. In ASP you can do : response.redirect "filename.asp", but what about PHP? -
how to preset the default font size for a web page?
Hi, How can I set my default display font size, type for a web page, or a <table>? I dont want to write <font size=....> everywhere, especially... -
Marcio Kleemann #2
Re: Opposite of RedirectFromLoginPage? Preset page to direct to...
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,f alse);
Response.Redirect("PageYouWant.aspx",true);
"Nugs" <duncsjunk@comcast.net> wrote in message
news:H-ednQ7OLPFtfS7dRVn-gw@comcast.com...have> How can I set the page that the login page needs to send the user to. Ilooking> 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> 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(txtUserI D.Text,
> chkPersistLogin.Checked)
> Else
> ErrorMsg.InnerHtml = "Login Failed! Please try again."
> End If
> End Sub
> </script>
>
> Thanks
> Nugs (ASP.NET Newbie)
>
>
Marcio Kleemann Guest



Reply With Quote

