Avatar of Bharat Guru
Bharat Guru
 asked on

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
C#ASP.NET.NET Programming

Avatar of undefined
Last Comment
Bharat Guru

8/22/2022 - Mon
Kyle Abrahams

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).
kaufmed

@Kyle

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

ASKER
How can I verify if my website is using dll or asps.cs files?
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Kyle Abrahams

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
kaufmed

@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.)
Bharat Guru

ASKER
thanks