ASP.NET and recomplie

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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
 
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
 
Back
Top