How to make IE show Default.aspx?

  • Thread starter Thread starter AAaron123
  • Start date Start date
A

AAaron123

I created a home page and moved to the isp.

it contains 3 files:
Default.aspv
Default.aspx.vb
web.config

and the folder App.Data

Using IE to point to my home page folder it displays the folder contents as
if I did ftp.

If I click on Default.aspx it site displays OK.

So I add an index.html file and that shows when IE refreshes.

Can I do something so simply pointing IE to the folder makes the
Default.aspx display?


Thanks
 
Your web server is not programmed to have default.aspx as a default page.
you may want to make sure it has asp.net capabilities because default.aspx
should really be added to the default page list already if the server
supports asp.net. Also, if index.html is in the list, it's usually more
indicative of a Unix/Linux server and not a Windows server.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
 
Thanks
I'll check

Mark Fitzpatrick said:
Your web server is not programmed to have default.aspx as a default page.
you may want to make sure it has asp.net capabilities because default.aspx
should really be added to the default page list already if the server
supports asp.net. Also, if index.html is in the list, it's usually more
indicative of a Unix/Linux server and not a Windows server.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
 
Hello AAaron123,

you can use use Default.asp/htmp because they are defaults for the IIS, or
go to IIS settings and add the default.aspx in the website properties

---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


A> Thanks
A> I'll check
A> A>
 
I'm only having the problem with my ISP so I guess I'd have to get him to do
what you suggested to his software.

Thanks

Michael Nemtsev said:
Hello AAaron123,

you can use use Default.asp/htmp because they are defaults for the IIS, or
go to IIS settings and add the default.aspx in the website properties

---
WBR, Michael Nemtsev [Microsoft MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

A> Thanks
A> I'll check
A> A>
 
The real file is Default.aspx

I only tried the index.html to see if that would work.

So as I understand it now the ISP looks for index.html but does not look for
Default.aspx

I normally would not have an index.html but If I could figure how to make an
index.html open the Default.aspx that would help.

Baring that the URL will have to include Default.aspx at the end.

thanks




Patrice said:
So as explained earlier this is because index.html comes earlier in the
list of default files...

Couldn't you just rename the index.html file if you don't want this file
to be the default file ?


[cut]
 
Hello AAaron123,

add the following code to the head section of you index.html to redirect
on your default.aspx

<script type="text/javascript">
<!--
window.location = "default.aspx"
//-->
</script>

---
WBR,
Michael Nemtsev [Microsoft MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


A> The real file is Default.aspx
A>
A> I only tried the index.html to see if that would work.
A>
A> So as I understand it now the ISP looks for index.html but does not
A> look for Default.aspx
A>
A> I normally would not have an index.html but If I could figure how to
A> make an index.html open the Default.aspx that would help.
A>
A> Baring that the URL will have to include Default.aspx at the end.
A>
A> thanks
A>
A> "Patrice" <http://www.chez.com/scribe/> wrote in message
A> A>
So as explained earlier this is because index.html comes earlier in
the list of default files...

Couldn't you just rename the index.html file if you don't want this
file to be the default file ?

[cut]
If I click on Default.aspx it site displays OK.

So I add an index.html file and that shows when IE refreshes.

Can I do something so simply pointing IE to the folder makes the
Default.aspx display?

Thanks
 
thank you
Michael Nemtsev said:
Hello AAaron123,

add the following code to the head section of you index.html to redirect
on your default.aspx

<script type="text/javascript">
<!--
window.location = "default.aspx"
//-->
</script>

---
WBR, Michael Nemtsev [Microsoft MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

A> The real file is Default.aspx
A> A> I only tried the index.html to see if that would work.
A> A> So as I understand it now the ISP looks for index.html but does not
A> look for Default.aspx
A> A> I normally would not have an index.html but If I could figure how to
A> make an index.html open the Default.aspx that would help.
A> A> Baring that the URL will have to include Default.aspx at the end.
A> A> thanks
A> A> "Patrice" <http://www.chez.com/scribe/> wrote in message
A> A>
So as explained earlier this is because index.html comes earlier in
the list of default files...

Couldn't you just rename the index.html file if you don't want this
file to be the default file ?

[cut]

If I click on Default.aspx it site displays OK.

So I add an index.html file and that shows when IE refreshes.

Can I do something so simply pointing IE to the folder makes the
Default.aspx display?

Thanks
 
Back
Top