ASP.NET programming a few tips

xiaoxiao2021-03-06  63

1. String string to assign the initial value of the initial value:

String var = string.empty;

2. During the writing code, partial code segment is folded together, thereby convenient reading:

#Region the Test Code

#ndregion includes including the code

3. Clear all the child controls in the container control of the server side:

Such as: ASP: PANEL ----- panel1.controls.clear ();

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

New Post(0)