Click here to Skip to main content
15,913,467 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I'm very new to the ASP.Net. I had developed a site and set the startup page as index.aspx. I have to host this site in server(another system). When i had hosted the application , site is opening by using www.xxx.com/index.aspx. Can you please suggest that how can i open the site by using www.xxx.com.


Thanks in advance,
Varshini M.
Posted

There are a couple of ways to do this. If you have access to IIS tell it to use your file name as a default file. Open your IIS manager. If you want to make this action the default for all of your sites then right-click on the 'Default Web Site' and select properties. Then click on the 'Documents' tab. Click the 'Add...' and add 'Index.aspx'. Otherwise only do this for your specific site.

Another way is to reanme 'Index.aspx' as 'Default.aspx' as this should be in the list by default.
 
Share this answer
 
Comments
Varshini2009 3-Mar-11 6:03am    
Thank You.
this[^] might help you.
 
Share this answer
 
Comments
m@dhu 3-Mar-11 6:00am    
I don't think the link has anything to do with the question.
here[^] is in detail of what digital man has said.
 
Share this answer
 

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