In ASP.NET there are basically two ways to create pages: The Notepad / Web Matrix way and the Visual Studio .NET way.
When you create your pages in Notepad, the Web Matrix, or even in IDEs like Dreamweaver, all code, like
VB.NET or C# code is place
inline in the page. So the .aspx page contains both the HTML and controls' markup and the programming code for Click and Load events.
When you request a page in the browser the page will be compiled o the fly, the result is cached for future requests and then the page is executed.
Visual Studio .NET, on the other hand, has a "code behind" model. The code you write is located in a separate file from the markup (in an .aspx.cs or .aspx.
vb file). Before you can run your page, you'll need to compile it into 1 big assembly, a DLL file. This DLL, together with the ASPX pages is then uploaded to the server. When an aspx page is loaded, the .NET framework checks the Inherits attribute of the page to see what class the page inherits from and then locates that class in the assembly.
Note that there is no need to upload the .cs, .
vb or .resx files to the remote server.
So, to advice you how to proceed, it's important to know what model you're using.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
Code by
Faithless (Track 10 from the album:
Outrospective)
What's This?