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