摘要: 1. 打开新的窗口并传送参数: 传送参数: response.write("<script>window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')</script>") 接收参数: string a = Request.QueryString("id"); string b = Request.QueryString("id1"); 2.为按钮添加对话框 Button1.Attribu 阅读全文
posted @ 2010-11-21 21:48 小锋神 阅读(250) 评论(0) 推荐(0) 编辑
摘要: //光棒效果 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onmouseover", "currentcolor=this.style.backgroundColor;this.style.backgroundColor='#FFFDD7'"); e.Row.Attributes.A 阅读全文
posted @ 2010-11-21 21:29 小锋神 阅读(568) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 遍历 rootdir目录下的所有文件 /// </summary> /// <param name="rootdir">目录名称</param> /// <returns>该目录下的所有文件</returns> public StringCollection GetAllFiles(string rootdir) { StringCollection result = new StringCollection(); GetAllFiles(rootdir, resul 阅读全文
posted @ 2010-11-21 21:20 小锋神 阅读(16999) 评论(1) 推荐(0) 编辑