|
-
May 22nd, 2007, 12:35 AM
#1
Thread Starter
Hyperactive Member
Redirecting to default.aspx page after forms authentication
Hi guys i am facing problem in forms authentication
In My application I have web.config file.
the authentication code is llike this
<configuration>
<system.web>
<authentication mode="Forms" >
<forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH">
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
<location path="Unsecure">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>
Under Solution Explorer
Unsecure :Folder
ForgotPassword.aspx
Root
Channel.aspx : this page is ->set as start up page
Login.aspx :Login button
on click of Login Button ->code goes here
FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, false);
On click of Login Button and After successful authentication it redirect to Channel.aspx page.now i clicked on back button which takes me to Login.aspx page . here if i again wants to login then
it shows an error that default.aspx page not found
i tried to log in by entering values in textbox and clicked on Login button it shows Default.aspx page not founnd.
surprising, in my application ther is no default.aspx page.
what is the reason.what is missing in web.config file.
help is appreciated
PPCC
-
May 23rd, 2007, 11:46 PM
#2
Lively Member
Re: Redirecting to default.aspx page after forms authentication
-
May 24th, 2007, 01:37 AM
#3
Thread Starter
Hyperactive Member
Re: Redirecting to default.aspx page after forms authentication
-
May 24th, 2007, 08:53 AM
#4
Lively Member
Re: Redirecting to default.aspx page after forms authentication
are you using the built in 2.0 controls.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|