How to deploy the *.aspx and *.aspx.cs pages only

Bharat Guru
Bharat Guru used Ask the Experts™
on
How can I deploy only *.aspx and *.aspx.cs  without deploying the dll in production.  
Is there any way we can setup the project to so after I copy the page2.aspx and page2.aspx.cs without mysite.dll in production the production site worked with my new changes

Local PC
mysite/
   bin/mysite.dll
   Page1.aspx
   Page1.aspx.cs
   Page2.aspx               (Modified)
   Page2.aspx.cs          (Modified)

Production
   bin/mysite.dll
   Page1.aspx
   Page1.aspx.cs
   Page2.aspx  
   Page2.aspx.cs
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Kyle AbrahamsSenior .Net Developer

Commented:
if you have the mysite.dll the CS files are compiled into that . . . so the CS pages are doing nothing.  

If you don't use the .dll the aspx and CS pages will be used and compiled into a temporary directory (and then again when an update is made to a CS file).
ǩa̹̼͍̓̂ͪͤͭ̓u͈̳̟͕̬ͩ͂̌͌̾̀ͪf̭̤͉̅̋͛͂̓͛̈m̩̘̱̃e͙̳͊̑̂ͦ̌ͯ̚d͋̋ͧ̑ͯ͛̉Glanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015

Commented:
@Kyle

Are you sure about that?  I thought only website projects had dynamic compilation. Web applications have to be compiled.

Author

Commented:
How can I verify if my website is using dll or asps.cs files?
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Senior .Net Developer
Commented:
easy test:  Remove one of the CS pages (or rename to .bak) and hit that page.  If it still works you're using the DLL.  Or You can even add a response.write("Hello World") into the CS file page_load event and hit the page . . . if you see the hello world, you're using the cs if not definitely  the DLL.

@Kaufmed . . . website projects can still be published . . . which essentially compiles it down to the DLL and the content.

If you have the DLL and the CS files I'm pretty sure the cs files are ignored.
ǩa̹̼͍̓̂ͪͤͭ̓u͈̳̟͕̬ͩ͂̌͌̾̀ͪf̭̤͉̅̋͛͂̓͛̈m̩̘̱̃e͙̳͊̑̂ͦ̌ͯ̚d͋̋ͧ̑ͯ͛̉Glanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015

Commented:
@Kyle

I am aware of that. But if this is a web application, then you cannot use dynamic code. (At least I didn't think you could.)

Author

Commented:
thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial