摘要: /// <summary> /// 循环整个form /// </summary> /// <param name="control">form</param> private void GetValue(Control control) { if (control.HasControls()) { foreach (Control c in control.Controls) { if (c is TextBox) {} } } } 阅读全文
posted @ 2013-01-17 15:41 丁焕轩 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: for (int j = 0; j < this.listQuery.Items.Count; j++){ listQuery.Items.Remove(this.listQuery.Items[j]); j--;} 阅读全文
posted @ 2013-01-17 15:37 丁焕轩 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1、打开的页面:var url= "SplitFrame.aspx?listOid=" + listOid + "&ts="+Math.random(1000);//rs回值可以判断的,也可以不要。var rs=window.showModalDialog(url,"splitPage","dialogWidth:900px;dialogHeight:450px;status:no;help:no");弹出窗口里用下面这个方法可以返回值。window.returnValue=//刷新当前页面window.l 阅读全文
posted @ 2012-12-20 11:51 丁焕轩 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 问题描述: showModalDialog 关闭模式窗体后,重新绑定gridview,如果用location.reload()方法来刷新页面。会弹出“不重新发送信息,则无法刷新网页”对话框。aspx页面此时在服务端内存里已经存在, 因此必定是 IsPostback 的。原因是页面已经通过查询按钮或分... 阅读全文
posted @ 2012-10-26 16:36 丁焕轩 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: 问题: 做access 插入的时候,一直报“INSERT INTO 语句的语法错误”。问题分析: 我对字段一个一个进行排查,发现只要字段名为note就报语法错误。 然后明确note是access的关键字。解决方法: 一、Insert Into test(Name, [Note]) Values ('aaa','bbb') ; 二、将note换成其他名字 阅读全文
posted @ 2012-10-26 15:22 丁焕轩 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 问题:当鼠标经过按钮的时候,发现页面的样式变了,其实就是边框变大了。解决:你好好找找看是不是在<form>标签内或外加了一个div,如果这边没有看看页面其他地方的DIV,反正就是DIV问题了。最好用table或长跟宽用绝对值。 阅读全文
posted @ 2012-09-24 17:20 丁焕轩 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 每一步: 右击“数据库字段”-“验证数据库”,填入正确信息,完成。 第二步:“数据库专家” 在这里进行修改。 第三步:换数据库的表或视图(设置数据源位置) 在替换为“我的连接”中,选择新的连接里要替换的表或视图。 点“更新” 阅读全文
posted @ 2012-09-05 18:22 丁焕轩 阅读(1537) 评论(0) 推荐(0) 编辑
摘要: byte[] byteArray = System.Text.Encoding.Default.GetBytes( str );string str = System.Text.Encoding.Default.GetString( byteArray ); 阅读全文
posted @ 2012-07-04 09:29 丁焕轩 阅读(180) 评论(0) 推荐(0) 编辑
摘要: arrStrFilterColumn 为string[] 类型 if (!Array.Exists(arrStrFilterColumn, a => { return a.Equals(dt.Columns[j].Caption.Trim(), StringComparison.OrdinalIgn 阅读全文
posted @ 2012-07-03 14:18 丁焕轩 阅读(512) 评论(0) 推荐(0) 编辑
摘要: parent.location.reload();window.opener.location.href=window.opener.location.href; 阅读全文
posted @ 2012-07-03 14:06 丁焕轩 阅读(130) 评论(0) 推荐(0) 编辑