|
-
Nov 13th, 2004, 10:48 AM
#1
Thread Starter
New Member
changing directory location of default.aspx
After a successful login the user goes to the default.aspx page, but it always looks for the default page in the root file. I would like to place it in a file called admin but I can't seem to get asp.net to default to the admin file.
I am using IIS and was told to change the document setting of the web site to "admin/default.aspx" which I did. It works ONLY if I change this line of the sub code:
FormsAuthentication.RedirectFromLoginPage(UserName.Text, false)
to
Response.Redirect("default.aspx")
then it appears to read the IIS settings and will correctly default to admin/default.aspx
Is there anyway else of doing this without having to replace the sub line???
thanks very much
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
|