Hi,
I want to change default setting for example i want to set signin.aspx as my login page or home.aspx as my default page. I saw somewhere that I could do this in web.config I can't remember where I saw!
Thanks, Amir Reza NL
You can change the loginUrl in the web.config by adding the <forms> element to the <authentication>:
<
authenticationmode="Forms"><
formsloginUrl="">
</
authentication>Hi
u can do this simply by right clicking on ur singin.aspx page and set it as ur start page.
The default sign-in page is done in the config file authentication/authorisation sections.
To redirect to a specifc home page can be done in a variety of ways... my preferred method is simply to add an application settings such as "HomePage" and then doing a quick test on incoming requests (server varible HTTP_REFERER) if the request originates outside the scope of you website do a redirect to the page defined as the "HomePage".
Hope this helps
I want to explain my problem further.
Suppose, u have tree sub folder (fd1,fd2,fd3) u have a page under fd1 (test.aspx) now when a user go to ~/fd1 I want test.aspx is shown to the user. One possible solution is to create default.aspx and redirect it to test.aspx but I don't like this approach.
Thanks,Amir Reza Nl
well, following is my advise:
there is a virtual directory corresponding to every folder/subfolder of your web application in IIS Manager.Find the right virtual directory( in your example, it's fd1) and perform a right click,choose thePeroperties and thenDocuments, in theEnable default content page section, you canchoose the page which you want to serve as the default page (in your example ,it's test.aspx).
there maybe some other alternative ways available, while i think what i have suggested is a good choice. think aobut it. :)
thanks.
0 comments:
Post a Comment