launch asp.net page...

  • Thread starter Thread starter sympatique
  • Start date Start date
S

sympatique

I build a web page with Asp.Net. I reserve a Domain name and host space from
a professionnal Hosting.
They told me to use the file Index.html to launch my .aspx page..... HOW CAN
i DO THIS.
do you know a place wherre i can find this informations.

Thank you.
Ray.
 
Hi Ray,

Create a file called Index.html in your web space and put this as the
complete content of the page:

<html>
<head>
<meta content="0;url=default.aspx" http-equiv="refresh">
</head>
</html>

Create an ASP.NET page called default.aspx and put it in your web space.

If anyone tries to view Index.html (or just the domain with no page name)
they'll be redirected to your default.aspx page.

Let us know if this helps?

Ken
Microsoft MVP [ASP.NET]
 
Hi Ken,
I follow your inscruction and I receive a server Error
<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
And an other paragraph
<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
I copy the file Web.Config on the site with the same result.
Thank you..

Hi Ray,

Create a file called Index.html in your web space and put this as the
complete content of the page:

<html>
<head>
<meta content="0;url=default.aspx" http-equiv="refresh">
</head>
</html>

Create an ASP.NET page called default.aspx and put it in your web space.

If anyone tries to view Index.html (or just the domain with no page name)
they'll be redirected to your default.aspx page.

Let us know if this helps?

Ken
Microsoft MVP [ASP.NET]
I build a web page with Asp.Net. I reserve a Domain name and host space
from
[quoted text clipped - 6 lines]
Thank you.
Ray.
 
Thank You Ken for your explanation. This code work very well.
Now I have an additional question... What is the syntax for linking an Image
in the current folder what ever if
the picture is on the hard disk during the designing or on the ftp site for
the hosting. Of course i have upload the picture to the ftp site too.
Thank you again.
PS: My projet is on ASP.Net
Hi Ray,

Create a file called Index.html in your web space and put this as the
complete content of the page:

<html>
<head>
<meta content="0;url=default.aspx" http-equiv="refresh">
</head>
</html>

Create an ASP.NET page called default.aspx and put it in your web space.

If anyone tries to view Index.html (or just the domain with no page name)
they'll be redirected to your default.aspx page.

Let us know if this helps?

Ken
Microsoft MVP [ASP.NET]
I build a web page with Asp.Net. I reserve a Domain name and host space
from
[quoted text clipped - 6 lines]
Thank you.
Ray.
 
Back
Top