Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2005, 10:50 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default default.aspx

I have created a project and it compiles successfully, i have just tried unloading my project, but apparently I need a default.aspx file to make my project complete. What is this and can I now create one?

Thanks

Louisa
 
Old October 1st, 2005, 12:04 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The default.aspx is the ASP.NET page! What is it you have compiled? If you have done an ASP.NET project using e.g. Visual Studio .NET, the default.aspx file is situated in the project folder.

The compiled code behind files have to be put in a bin folder on the web server. Is it code behind files you have compiled?

Hope it helps, Jacob.
 
Old October 13th, 2005, 10:58 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have no default.aspx in the project file, I am not sure what I have done wrong. The project loads starting on a form that I created not a default.aspx page is it because I am not compiling it properly? I just go to Build then Build Project.

Thanks

Louisa

 
Old October 13th, 2005, 03:34 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you using Visual Studio .NET?

If you are not using VS .NET and you are not comfortable with the way ASP.NET works, then you should make a sample project without code-behind and only a default.aspx file. Then you do not need to compile anything.

This would give you an idea of the setup, and you can evolve this example to more advanced projects, which also includes code-behind.

Jacob.
 
Old October 14th, 2005, 11:55 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Web sites are configured to load certain default pages since URLs don't usually have that page in them. You never see http://www.amazon.com/myform.aspx.

It is a configuration option in your web server. What web server are you using? Is it IIS?

In IIS you can specify a search order for "default" pages and it allows you to add others, like you could even add myform.aspx and your web server would search for that page. I'm not sure if a .NET project has to have a default.aspx page or not.

Thanks,
Richard






Similar Threads
Thread Thread Starter Forum Replies Last Post
Default.aspx?AspxAutoDetectCookieSupport=1 krainov BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 May 27th, 2008 03:30 AM
Where is the default.aspx in chapter 1? jkacher BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 February 29th, 2008 02:30 PM
Slow default.aspx after changes slas7713 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 September 21st, 2006 11:04 AM
error in default.aspx anass BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 24th, 2005 09:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.