在是否aspx页面code在web应用程序被编译? [英] Does code in aspx page get compiled in a web application?

查看:168
本文介绍了在是否aspx页面code在web应用程序被编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我说开始,如果任何人谈论这个问题的好文章的人都知道,请点我朝它。

Let me just start by saying, if anyone knows of a good article that talks about this subject, please point me towards it.

请问在.aspx页面code(其间<%%>标签)会被编译在Web应用程序或它当作标记,你可以改变它无需重新编译的解决方案吗?难道编译只编译落后code中的code中的.cs和designer.cs文件?

Does code in an .aspx page (in between <% %> tags) get compiled in a web application or is it treated like markup where you can just change it without recompiling the solution? Does compiling only compile the code behind code in the .cs and designer.cs files ?

推荐答案

如果你在一个Web应用程序项目(而不是网站),那么任何改变类(的.cs),$ C开发$ C隐藏文件(.aspx.cs),设计文件等(基本上任何未标记或类似的.htm静态文件)将需要在Visual Studio重建。

If you're developing in a 'Web Application Project' (as opposed to 'Web site') then any change to class (.cs), code-behind file (.aspx.cs), designer files, etc (basically anything that isn't markup or static files like .htm) would require a rebuild in Visual Studio.

这篇关于在是否aspx页面code在web应用程序被编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆