Click here to Skip to main content
15,912,082 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi every body;
I had a question about setting start page in asp.net.
All of my pages are in the folder of pages,
so how can i set a default page in this folder as a start page?

Thanks.
Posted

1 solution

Open website in Visual Studio, right click on the Page, then click on "Set as start page" option.
If you hosting on IIS, then just add a Default Document for the website and mention the name, same as the page name.
 
Share this answer
 
Comments
rogerfederer670 16-May-14 14:53pm    
But i wanna when entering the website address,automatically the defualt.aspx page,which is in the
pages folder,load in the browser.
You have to set that in IIS. Try the below method.

Right click on your virtual directory select Properties then on the Documents tab you have the option to add/edit default content pages for your site

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900