Wednesday, March 28, 2012

VOTE: write coding in .aspx file or code behine using .aspx.vb?

Please vote:

Write A = .aspx or
Write B = .aspx.vb

Give comment (optional)Well if you are using VS.net you could place it in the code behind and easy compile it then. If you have a big webapplication it may be faster if you code in code behind and all is compiled to a dll.

You could also put your code directly into the aspx file, then it will be compiled on the fly (afaik).

Personally I prefer the code behind method. So I have one file for HTML and "Placeholders" and one file for the Code.

Just my opinion ...
Hi,

B

Take a look @.ASP.NET Code Behind Pages
Test code: inline code (A)
Application code: code-behind (B)

You simply have much greater flexibility with code-behinds. But for test code, such flexibility is pointless, and the extra complexity is unwarranted ...

0 comments:

Post a Comment