ASP.NET and recomplie

G

Guest

All,

I have a ASP.NET/C# website that is currently running in production and I
have made some changes to the .aspx .cs and .ascx. Now if I was to simply
copy the updated files to the webserver would they get automatically
re-compiled or do I need to perform a build first?

I remember reading something about .net can automatically recompile newer
code.

Thanks
Msuk
 
C

Curt_C [MVP]

It depends on how you have the project/site configured. Traditionally you
compile it on your machine and only copy up the .dll (for the codebehind
files) and the .aspx/.ascx for the html.
 
G

Guest

Hi,

So you have to perform a build first on the development box and then copy up
to the production box. You simply cant copy the files up and they get
automatically re-complied the next time the website is accessed.

Thanks
Msuk
 
C

Curt_C [MVP]

I believe you can, but there are some settings/switches that need to be
done. It's a matter of changing the aspx/ascx header to no use the
CodeBehind or Inherits call the same way. I dont have it in front of me but
look up the Page directive for some examples.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top