Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Login.aspx

Reply
Thread Tools

Login.aspx

 
 
Ahmed Hashish
Guest
Posts: n/a
 
      03-23-2006
I have an asp.net (2005) application using forms authentication.

It has a simple login page (login.aspx) that uses
FormsAuthentication.RedirectFromLoginPage

the problem is that the redirect url always points to the default.aspx
although I don't have default.aspx in my web application.

I changed the defaultUrl attribute in the web.config to points to other page
and disabled the setting 'Enable Default Page' in the IIS with no success



Pls. help






 
Reply With Quote
 
 
 
 
=?Utf-8?B?VkhENTA=?=
Guest
Posts: n/a
 
      03-23-2006
In your VS project, set the asxp page (that you want the login page to
redirect to) to startup page (right click on the page and choose "set as
startup page" or something like that).
In your IIS, right click on the web site in question and choose properties.
Click on the Documents tab, and remove all the default web page list there,
then add your own default page name in.
This should fix your problem.
Hope this helps.
VHD50.

"Ahmed Hashish" wrote:

> I have an asp.net (2005) application using forms authentication.
>
> It has a simple login page (login.aspx) that uses
> FormsAuthentication.RedirectFromLoginPage
>
> the problem is that the redirect url always points to the default.aspx
> although I don't have default.aspx in my web application.
>
> I changed the defaultUrl attribute in the web.config to points to other page
> and disabled the setting 'Enable Default Page' in the IIS with no success
>
>
>
> Pls. help
>
>
>
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments