Web application defined?

I

Ian

Hi there,

I have been learning c# for a while now, although mainly the language and I
am little confused about the completed picture.

I am creating a website, part of it is standard html files, some are aspx
files without any code behind files but inline coding and others are proper
aspx files with code behind.

I am of course creating standard html files using dreamweaver as this is my
preference.

Can anyone explain what the standard way of creating a so called "web
application" i.e. should I create several web application for each part of
my website which consists of code or should the complete website also be
wrapped within a web application.

i.e. The webapplication is VS would also consist of html..??

I hope I have explained it correctly, as you can see I am a little
confused...

Any help or guidance would be really appreciated

Thanks

Ian
 
V

VB Programmer

The standard .NET web page with "code behind" has an ASPX extension. You
can use a language of your preference for the "code behind". These pages
would more than likely go within a project and you can have multiple
projects for 1 "solution" depending on how you wish to organize everything.

HTH,
VB Programmer
 
I

Ian

Thanks for the reply....

I am using VS for asp.net files with code behind...

and dreamweaver for everything else..

So basically have the aps.net code behind in a project and keep everything
else out of it ...??

I suppose that sounds logical... I was just a little confused :)

Thanks

Ian
 
I

Ian

Ahh.. Thanks dave,

I come from an old vs vbscript days and this is the way I used to do it
then, have everything all in one project... Learning c# ... just confused me
a little...

Great so create the web applicaiton in the root of my IIS directory which VS
does for me but I don't have to use the root for the main asp aplication...
I can create directory under directory and start from there..

Great stuff thanks

Ian
David Coe said:
The best way to implement what you are doing is to include all of your
files (.hmtl, .aspx, .cs) in one project. A project can have multiple
directories in it without a problem. If you are using Visual Studio, then
it is better to use the code behind support (I've been where you are, and,
trust me, it's a lot nicer because of the Intellisense, code completion,
etc.).
The web application will create a virtual directory in IIS, which is what
..NET uses to define a "web application." If you were going to try to create
several web applications underneath (like if you made each folder an
application), it turns out pretty messy when you want to share state between
pages.
 

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

Top