launch asp.net page...

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.
 
K

Ken Cox [Microsoft MVP]

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]
 
S

sympatique via DotNetMonster.com

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.
 
S

sympatique via DotNetMonster.com

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top