随笔分类 - 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);
阅读全文
摘要:获取DataList中的控件: 例如:获取Lable: protected void dtFlowBase_ItemCommand(object source, DataListCommandEventArgs e) { Label lblFlowName = e.Item.FindControl("lblFlowName") as Label; string FlowName = lblFlowName.Text; }
阅读全文