Andrew G. Johnson
Andrew G. Johnson

Reputation: 26993

Want to use index.aspx instead of default.aspx in ASP.NET webapp

I want to display index.aspx instead of default.aspx in the root of folders in my ASP.NET app but can't figure out where to set this.

Upvotes: 2

Views: 637

Answers (4)

alchemical
alchemical

Reputation: 13995

In IIS Manager, right-click the web site and choose properties, click the 'Documents' tab, and add index.aspx to the list.

Upvotes: 0

Matt
Matt

Reputation: 2098

It should be called "Default Document" in your IIS setting.

Upvotes: 2

Andrew Hare
Andrew Hare

Reputation: 351566

This is a change that you need to make in IIS. Please see Setting Up Default Documents for how to do this:

You can establish a default document for client requests to a Web site that does not specify a document name. Default documents can be a directory's home page or an index page.

Upvotes: 4

Related Questions