Deploying apps with the aspx code

  • Thread starter Thread starter Tony Moaikel
  • Start date Start date
T

Tony Moaikel

Hi,

I read that it is possible to deploy an asp.net app without the aspx code.
Does anyone know about any articles that explain how to do this?

Thanks,

Tony
 
Uncheck this in the Build - Publish Web Site dialog.

Allow this precompiled site to be updatable
Specifies that the content of .aspx pages are not compiled into an assembly;
instead, the markup is left as-is, allowing you to change HTML and
client-side functionality after precompiling the Web site. Selecting this
check box is equivalent to adding the -u option to the aspnet_compiler.exe
command.
 
Oh - forgot its also in the website property pages, in the MSBuild options.
 
Thanks Tim,

Does this mean that the html markup code and web controls code will still be
visible in the aspx files?
I always use code behind classes with my aspx pages and I was wondering if
this has any benefit for me.

Tony
 
No, what happens, is EVERYTHING compiles into the dlls. and that is the only
thing that you distribute. So, you wont be able to later modify the apsx if
you need to. I believe (have not confirmed) that the aspx, and ascx files
get compiled in as embedded resources at that point. Note to self : use
reflector to verify this, if someone does not beat me to the punch.
 

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

Back
Top