摘要: if (!Page.IsPostBack) { } 阅读全文
posted @ 2014-02-15 17:31 914556495 阅读(97) 评论(0) 推荐(0)
摘要: Arraylist values =new Arraylist//values是存储值的变量foreach(Control a in panel1.Controls){ if(a is Label) { values.Add(a.text); }}TextBox t = (TextBox)Panel1.FindControl("TextBox1");string neir = t.Text; 阅读全文
posted @ 2014-02-15 16:54 914556495 阅读(848) 评论(0) 推荐(0)
摘要: ////循环添加label for (int i = 0; i " + "" + fn + "" + "大小" + file_KB + "上传文件成功";//label属性texbox的值 this.Controls.Add(l); } 阅读全文
posted @ 2014-02-15 11:55 914556495 阅读(252) 评论(0) 推荐(0)
摘要: string[] str = new string[10];str[0] = "abc";int hasCount= str.Where(delegate(string s){ return !string.IsNullOrEmpty(s);}).Count();hasCount这个就是 阅读全文
posted @ 2014-02-15 11:24 914556495 阅读(870) 评论(0) 推荐(0)