473,324 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 2748
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Douglaskbell | last post by:
I get this popup error when adding a new .NET web app project in VisualStudio. "The class file "WebForm1.aspx.vb' specified as the codebehind for 'WebForm1.aspx' could not be loaded. Make sure...
1
by: C Learner | last post by:
I have a ASP.NET web application. It contains a WebForm1.aspx which extend class Page, and a class in Class1.cs which extend Class2.cs class. Inside the Class1.cs functions, I want to write...
2
by: sushi | last post by:
Hello, I am using java script to post data back to the server when a button is clicked. In my web form, when a button is clicked, a javascript executes which submits data back to the server by...
1
by: varun varun | last post by:
hello friends, i am a novice developer in ASP.NET. i use VS.NET Enterprise Edition. i inform you that my question may look silly to you but there is no shame in asking it to you since i...
3
by: Aitham alama | last post by:
Hi There, My question is as following, I have a webform (Webform1) which contains one label control and command button, when the user clicks the button another webform (Webform2) appears,...
0
by: Ashish | last post by:
hi there, Iam trying to spawn a process from a webpage using microsoft's article http://support.microsoft.com/default.aspx?scid=kb;EN-US;889251 this does everything for me , except that i want...
6
by: tony010409020622 | last post by:
My WebForm1.aspx works fine when I connect via localhost, AND when I connect using the IP address. HOWEVER, NO ONE ELSE can connect using my IP address. Capitalization is correct, Firewall is off,...
5
by: Tmuld | last post by:
Hello, How do I return to a page using response.redirect - keeping the state value? Right now I have a back button - on pressing it - it send the user back to WebForm1.aspx - but all the...
1
by: Big George | last post by:
Trying to show a Crystal Report at WebForm1.aspx: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Put user code to initialize the page here...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.