1. 可以针对单个控件、整个页面或整个应用程序禁用 ViewState
每个控件(在标记上) datagrid EnableViewState="false" ?/>
每个页面(在指令中): <%@ Page EnableViewState="False" ?%>
每个应用程序(在 web.config 中): <Pages EnableViewState="false" ?/>
****************************************************************
2.获取数据库连接字符串

♦获取其它的配置

********************************************************************
3.使用MD5加密密码

**********************************************************************
4. 在aspx页面可以自定义函数



5.checkBoxList控件找选定的值
foreach (ListItem i in cblCategory.Items)
{
if (i.Selected == true)
{
selectCategory += i.Value + ",";
}
}