SmartestVEGA
SmartestVEGA

Reputation: 8899

Changing the homepage from default.aspx to abc.aspx

i have designed my homepage of my webpage as abc.aspx not default.aspx . How can set the abc.aspx as homepage?

Upvotes: 0

Views: 163

Answers (4)

RickNZ
RickNZ

Reputation: 18654

Although you can change the default document using IIS Manager, as others have said, I prefer to do it directly in web.config, since I don't have every site configured to use IIS in my development environment. For example:

<system.webServer>
  . . .
  <defaultDocument>
    <files>
      <clear/>
      <add value="abc.aspx"/>
    </files>
  </defaultDocument>
</system.webServer>

Upvotes: 1

Pragnesh Patel
Pragnesh Patel

Reputation: 1444

add abc.aspx in default document list in ISS. then move it to top on list.

Upvotes: 0

James
James

Reputation: 82136

If using Visual Studio you can right click on the page and select Set as Startup Page. In IIS you can add it to the Default Document list, ensure you put it first in the list.

Upvotes: 0

rahul
rahul

Reputation: 187090

You can set default document in IIS for a particular web site.

Upvotes: 1

Related Questions