摘要:
<head runat="server"> <title>无标题页</title> <script type="text/javascript"> function fileAdd() { var file_appendixs = document.getElementById("file_appendix").value; var arrfile = new Array(); arrfile = file_appendixs.split("\\"); var A = 阅读全文
摘要:
/// 截取字符串,不限制字符串长度 /// 待截取的字符串 /// 每行的长度,多于这个长度自动换行 public string CutStr(string str, int len) { string s = ""; for (int i = 0; i < str.Length; i++) { int r = i % len; int last = (str.Length / len) * len; if (i != 0 && i <= last) { if (r == 0) { s += str.Substring(i - len, len 阅读全文
摘要:
1, 获取当前行的行号: int index = ((ListViewDataItem)e.Item).DisplayIndex;2,获取当前行的主键: int id = Convert.ToInt32(ListView1.DataKeys[index].value);protectedvoidListView1_ItemCommand(objectsender,ListViewCommandEventArgse){//获取当前行号;intindex=((ListViewDataItem)e.Item).DisplayIndex;//获取当前行号的主键;intid=Convert.ToInt3 阅读全文