ASP.Net 3.5 / 4.0 codeBehind或codeFILE? [英] ASP.Net 3.5/4.0 CodeBehind or CodeFile?

查看:96
本文介绍了ASP.Net 3.5 / 4.0 codeBehind或codeFILE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过previous后阅读:<一href=\"http://stackoverflow.com/questions/73022/$c$cfile-vs-$c$cbehind\">http://stackoverflow.com/questions/73022/$c$cfile-vs-$c$cbehind,但我仍然感到困惑上,我应该使用。这听起来像codeFILE是应该使用较新的选项,但VS2010创建一个新的Web窗体当c $ cBehind产生$。

I read through the previous post: http://stackoverflow.com/questions/73022/codefile-vs-codebehind, but I'm still confused on which I should use. It sounds like CodeFile is the newer option that should be used, yet VS2010 generates CodeBehind when creating a new Web Form.

推荐答案

这取决于你的模板,看看网站与Web应用程序。我倾向于以下几个原因preFER Web应用程序,但是这是你的。如果你看到C-背后$ C $,你可能已经选择的模板。

It depends on your template, check out web site vs. web application. I tend to prefer web application for several reasons, but that is up to you. If you see code-behind, you probably have selected that template.

这篇关于ASP.Net 3.5 / 4.0 codeBehind或codeFILE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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