ASP.net:网站或Web应用程序项目 [英] ASP.net: Website or web application project

查看:109
本文介绍了ASP.net:网站或Web应用程序项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有网站和Web应用程序项目有什么区别?如果你正在从事一个项目,是这类站点和应用程序的混合动力是什么?你应该选择哪种项目?

Is there any difference between website and web application project? What if you are working on a project that is sort of hybrid of site and application? which project should you chose?

推荐答案

至于哪些项目可以选择,我会与Web应用程序项目走,无论大小。让所有的code的后面向下编译成一个DLL是维护和安全上月底举办一个重大的好处。我知道有网站项目中的precompile的选择,但他们似乎比较麻烦,这是值得我。

As for which project to choose, I would go with the Web Application Project, regardless of size. Having all of your code behind compile down into a single DLL is a major benefit for maintenance and security on the hosting end. I know there are precompile options for web site projects, but they seemed like more trouble that it was worth for me.

我知道,IIS过滤器在地方访问您的.vb或文件的.cs prevent用户,但它仍然让我有点持怀疑态度。

I know that the IIS filters are in place to prevent users from accessing your .vb or .cs files, but it still makes me a little leery.

但更重要的是,这是很好的事实,如果你做了一堆编码的变化,或者添加一些类和改变处理逻辑,你必须合并起来的唯一事情是编译的DLL,没有别的。同样,如果你做了一些用户界面的变化(比如改变一些控件的样式和位置),你不必担心重新编译应用程序,您只需带上了更新​​.aspx页面中,你就大功告成了。

But more important to this is the nice fact that if you make a bunch of coding changes, or maybe add some classes and change the processing logic, the only thing you have to merge up is the compiled DLL and nothing else. Similarly, if you do a few UI changes (say change the stylesheet or position of a few controls), you don't have to worry about recompiling the application, you simply bring over the update .aspx page and you're done.

这篇关于ASP.net:网站或Web应用程序项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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