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

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
Bharat GuruAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle AbrahamsSenior .Net DeveloperCommented:
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).
0
käµfm³d 👽Commented:
@Kyle

Are you sure about that?  I thought only website projects had dynamic compilation. Web applications have to be compiled.
0
Bharat GuruAuthor Commented:
How can I verify if my website is using dll or asps.cs files?
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Kyle AbrahamsSenior .Net DeveloperCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
käµfm³d 👽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.)
0
Bharat GuruAuthor Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.