Re: What is the correct way to create an ASP.NET Web Application?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi,

"ASP.NET Web Site" is what you are looking for.

As for the localhost:
Visual Studio 2003 was only able to work with the windows webserver called IIS. Because configuration was a bit confusing especially to beginners, Visual Studio 2005 introduced a new lean webserver for local development as alternative. That means, in Visual Studio 2005 you can use any directory as location for your website, while in 2003 you had to specify a localhost location (imagine it as the root directory of your windows webserver).

However, you can still use the IIS in VS 2005 (and therefore have a localhost location). To do so, make sure you have IIS installed and registered with ASP.NET. In the "New web site" dialog, you should have a combobox where you can choose the "location" - if you choose HTTP here, the file name in the textbox should convert to something like "http://localhost/WebSite";. Change "WebSite" to the name of your choice and click ok.

If you're wondering where the files physically reside on your computer, they are in C:\Inetpub\wwwroot (this is your "localhost" directory). That is, unless you've installed it somewhere else, of course.

Again, I'm sure everybody here is happy to help you, but since you mentioned that it's a course on databinding, I would try to find a course on ASP.NET 2.0. There's quite a bit of work-arounds and quirks necessary in ASP.NET 1.1 (especially with the DataGrid), that can drive a beginner nuts (it did that to me :) and you can save valuable time making use of the ASP.NET 2.0 features.

Hope this helps,

Cheers,

Roland


M Skabialka schrieb:
I have found another option:
File - New Web Site, with these template options
WCF Service
ASP.NET Web Site
ASP.NET Web Service
Personal Web Site Starter Kit
Empty Web Site

Which of these is a "ASP.NET Web Application"?

My instructions then say to place this new web application in:
http://localhost/2373/Labs/Lab081/Ex03/Invoices

However, this localhost location does not exist. I have a folder:
C:\2373B\Labs\Lab081\Ex03\Invoices

But how do I define it as localhost?

The online course was provided by my employer.

"Roland ***" <brischt@xxxxxx> wrote in message news:%23Fk4N$RZHHA.2320@xxxxxxxxxxxxxxxxxxxxxxx
Hi Mich,

The instructions were written for a Visual Studio version earlier than the 2005 version I have.
Instead of following that course, I'd recommend to look for a step-by-step manual for Visual Studio 2005, as a lot of things changed (mostly to the better) from VS 2003 to VS 2005. Or, maybe even better, go to a bookstore or library and get a beginner's book. It's really worth paying the effort to learn the basics...

What is the correct way to create an ASP.NET Web Application?
In my version of Visual Studio 2005 (Professional Edition), it is File - New - Project, then choose the language on the left side (e.g. C#) and ASP.NET WebApplication on the right pane. The name will be WebApplication1 (or similar), as will be the solution name (you can imagine a solution to be one or more projects grouped together by Visual Studio so you can develop easier; for example, you might have a library project and a webapplication project that in turn uses the library in your solution). When you hit OK, Visual Studio will create a file named "Default.aspx" - this is your Webpage (what used to be named WebForm1.aspx in VS2003, I think). The name doesn't really matter, important is the aspx at the end, which says: This is an ASP.NET website.

Hope this helps,

Cheers,

Roland


.


Quantcast