ASP.Net 3.5/4.0 CodeBehind or CodeFile?

南笙酒味 提交于 2019-12-07 04:16:55

问题


I read through the previous post: 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.


回答1:


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.



来源:https://stackoverflow.com/questions/2585463/asp-net-3-5-4-0-codebehind-or-codefile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!