The .cs files are just containers for source code (modules). The code in
those files gets compiled into the project's assembly (.dll) which is
deployed, along with the .aspx files) to a web server.
In the .aspx files, there is a Page directive that includes an "Inherits"
clause. When a client requests a particular .aspx page, that page then
calls into the assembly and makes an instance of the class mentioned in the
..aspx file. From there, the page object can fire and respond to events and
run its compiled code.
You do not need/want to deploy the .cs files to the production web server as
these source code files get compiled into the final assembly.
"Dan" <dv*******@aol.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
I know this is tupid but coming from a c++ background to asp.net in c# has
been a real awakening.
I have made my class and placed it in a .cs file but i do not know how i
am supposed to get my aspx pages to use that class when they run?
Could someone please help me in explaining how i programatically include a
cs file thanks.