Codebehind in ASP.NET

xiaoxiao2021-03-06  77

There are two ways to write on the ASP.NET page: CodeBehind and Non Code Behind, individuals are biased with CodeBehind, the reason is:

1. The .aspx file does not include code, easy to make a beautifying work

2. Current Visual Studio .NET 2003 does not support Non codeBehind

3. Pages and code separation, which is conducive to code reuse

4. Convenient unit test

The disadvantage is to increase the complexity of the code, but for a slightly somewhat application, it is worth it.

转载请注明原文地址:https://www.9cbs.com/read-75251.html

New Post(0)