随笔分类 -  Web开发常用积累

摘要:核心提示:asp.net日常用到的字符串的截取函数string str='123abc456';int i=3;1 取字符串的前i个字符str=str.Substring(0,i); // or str=str.Remove(i,str.Length-i); 2 去掉字符串的前i个字符:str=str.Rem...asp.net日常用到的字符串的截取函数string str="123abc456";int i=3;1 取字符串的前i个字符str=str.Substring(0,i); // or str=str.Remove(i,str.Length-i); 阅读全文
posted @ 2012-08-17 16:16 Mr zhao 编辑
摘要:获取DataList中的控件: 例如:获取Lable: protected void dtFlowBase_ItemCommand(object source, DataListCommandEventArgs e) { Label lblFlowName = e.Item.FindControl("lblFlowName") as Label; string FlowName = lblFlowName.Text; } 阅读全文
posted @ 2012-07-09 15:11 Mr zhao 阅读(452) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示