My default document is in subfolder not in root how can i make it default in asp.net 2.0 website.
Tried iis7 default document setting to ‘/pages/default.aspx’ ‘~/pages/default.aspx’ but it didn’t work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Default document is not the same as start page. Default document means if I requested
mysite.com/somefolderand didn’t specify a file, which file should IIS display.If you want to use a specific page as your home page, create a Default.aspx file and write this in it’s codebehind class:
As the client might have disabled Javascript, a server side approach would be more reliable. However it’s best to issue a permanent redirect instead of a simple
Response.Redirect. Also doing it using JS will be bad from a SEO point of view.