ASP.NET 2.0 中的新特性: 异步页功能(示例代码下载)
http://blog.csdn.net/ChengKing/archive/2006/04/28/695897.aspx
Cui55的专栏
http://blog.csdn.net/cui55/category/218205.aspx
加密MD5
为DataGrid添加JS
http://blog.csdn.net/ChengKing/archive/2006/04/28/695897.aspx
Cui55的专栏
http://blog.csdn.net/cui55/category/218205.aspx
加密MD5
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(cleanString,"MD5").ToLower().Substring(8,16);
为DataGrid添加JS
因为Linkbutton3是在<EditItemTemplate>里,因此改改:
private void DataGrid1_ItemDataBound(..)//在itemDataBound事件中处理
{
if(e.Item.ItemType == ListItemType.EditItem)
{
LinkButton lbtn = (LinkButton)e.Item.FindControl("linkbutton3");
lbtn.Attributes.Add("onclick","return subfrm();");
}
}
private void DataGrid1_ItemDataBound(..)//在itemDataBound事件中处理
{
if(e.Item.ItemType == ListItemType.EditItem)
{
LinkButton lbtn = (LinkButton)e.Item.FindControl("linkbutton3");
lbtn.Attributes.Add("onclick","return subfrm();");
}
}