469,267 Members | 1,070 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,267 developers. It's quick & easy.

WebForm1.aspx / default.aspx

When I develop my ASP.NET 1.1 application locally, the default form is
always "WebForm1.aspx." However, when I post the same application to a web
server, the default becomes "default.aspx."

Why is this and how can I change the default from "WebForm1.aspx" to
"default.aspx?"

Thanks,
Ted Apollo
Nov 18 '05 #1
5 2489
Ted Apollo wrote:
When I develop my ASP.NET 1.1 application locally, the default form is
always "WebForm1.aspx." However, when I post the same application to
a web server, the default becomes "default.aspx."

Why is this and how can I change the default from "WebForm1.aspx" to
"default.aspx?"


WebForm1.aspx is simply the first page of a web project and thus set to be
start page as far as VS .NET is concerned. default.aspx is a true start page
(i.e. invoked when there's no file specified in the URI). This is an IIS
setting and can be edited to include any other name you want.

Cheers,

--
Joerg Jooss
jo*********@gmx.net
Nov 18 '05 #2
Thanks, Joerg

Two follow-up questions though. Can the default first page of a web project
in VS.NET be changed to "default.aspx" instead of "WebForm1.aspx?"

Also, regarding IIS, could you tell me how to set the default page?

Thanks again,
Ted Apollo

"Joerg Jooss" <jo*********@gmx.net> wrote in message
news:ec**************@TK2MSFTNGP09.phx.gbl...
Ted Apollo wrote:
When I develop my ASP.NET 1.1 application locally, the default form is
always "WebForm1.aspx." However, when I post the same application to
a web server, the default becomes "default.aspx."

Why is this and how can I change the default from "WebForm1.aspx" to
"default.aspx?"
WebForm1.aspx is simply the first page of a web project and thus set to be
start page as far as VS .NET is concerned. default.aspx is a true start

page (i.e. invoked when there's no file specified in the URI). This is an IIS
setting and can be edited to include any other name you want.

Cheers,

--
Joerg Jooss
jo*********@gmx.net

Nov 18 '05 #3
Hi,

AFAIK you can't specify the default page name for new pages in VS.NET.
To alter your default page in IIS, go to the properties for your application
or virtual directory, and choose the 'Documents' tab. You will see the
default document settings with which you can add or remove documents and
reorder them for priority.

--
Ben
http://bitarray.co.uk/ben

"Ted Apollo" <te********@yahoo.com> wrote in message
news:d5********************@comcast.com...
Thanks, Joerg

Two follow-up questions though. Can the default first page of a web
project
in VS.NET be changed to "default.aspx" instead of "WebForm1.aspx?"

Also, regarding IIS, could you tell me how to set the default page?

Thanks again,
Ted Apollo

"Joerg Jooss" <jo*********@gmx.net> wrote in message
news:ec**************@TK2MSFTNGP09.phx.gbl...
Ted Apollo wrote:
> When I develop my ASP.NET 1.1 application locally, the default form is
> always "WebForm1.aspx." However, when I post the same application to
> a web server, the default becomes "default.aspx."
>
> Why is this and how can I change the default from "WebForm1.aspx" to
> "default.aspx?"


WebForm1.aspx is simply the first page of a web project and thus set to
be
start page as far as VS .NET is concerned. default.aspx is a true start

page
(i.e. invoked when there's no file specified in the URI). This is an IIS
setting and can be edited to include any other name you want.

Cheers,

--
Joerg Jooss
jo*********@gmx.net


Nov 18 '05 #4
Got it. Thanks!

Ted Apollo

"Ben Lovell" <sp**@benlovell.co.uk> wrote in message
news:u2****************@TK2MSFTNGP15.phx.gbl...
Hi,

AFAIK you can't specify the default page name for new pages in VS.NET.
To alter your default page in IIS, go to the properties for your application or virtual directory, and choose the 'Documents' tab. You will see the
default document settings with which you can add or remove documents and
reorder them for priority.

--
Ben
http://bitarray.co.uk/ben

"Ted Apollo" <te********@yahoo.com> wrote in message
news:d5********************@comcast.com...
Thanks, Joerg

Two follow-up questions though. Can the default first page of a web
project
in VS.NET be changed to "default.aspx" instead of "WebForm1.aspx?"

Also, regarding IIS, could you tell me how to set the default page?

Thanks again,
Ted Apollo

"Joerg Jooss" <jo*********@gmx.net> wrote in message
news:ec**************@TK2MSFTNGP09.phx.gbl...
Ted Apollo wrote:
> When I develop my ASP.NET 1.1 application locally, the default form is > always "WebForm1.aspx." However, when I post the same application to
> a web server, the default becomes "default.aspx."
>
> Why is this and how can I change the default from "WebForm1.aspx" to
> "default.aspx?"

WebForm1.aspx is simply the first page of a web project and thus set to
be
start page as far as VS .NET is concerned. default.aspx is a true start

page
(i.e. invoked when there's no file specified in the URI). This is an IIS setting and can be edited to include any other name you want.

Cheers,

--
Joerg Jooss
jo*********@gmx.net



Nov 18 '05 #5
Ted Apollo wrote:
Thanks, Joerg

Two follow-up questions though. Can the default first page of a web
project in VS.NET be changed to "default.aspx" instead of
"WebForm1.aspx?"
I'm not sure. Maybe if you mess around with its project templates. What I
normally do is delete WebForm1.aspx and create a new one with a proper
name -- this is faster than renaming both the file and the code-behind
class. I do the same in the Windows Forms designer as well.
Also, regarding IIS, could you tell me how to set the default page?


See Ben's reply.

Cheers,

--
Joerg Jooss
jo*********@gmx.net
Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Douglaskbell | last post: by
2 posts views Thread by sushi | last post: by
1 post views Thread by varun varun | last post: by
reply views Thread by Ashish | last post: by
6 posts views Thread by tony010409020622 | last post: by
5 posts views Thread by Tmuld | last post: by
1 post views Thread by Big George | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.