Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.Net 3.5/4.0 CodeBehind or CodeFile?

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.

like image 539
Donald Hughes Avatar asked Nov 06 '22 14:11

Donald Hughes


1 Answers

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.

like image 128
Brian Mains Avatar answered Nov 11 '22 14:11

Brian Mains