Sun_china

交流更多,收获更多?

博客园 首页 新随笔 联系 订阅 管理

2007年4月19日 #

摘要: 1 2 var Flag=true; 3 function chooseAll() 4 { 5 if(Flag) 6 { 7 var inputs=document.all.tags("input"); 8 9 for (var i=0; i<inputs.length; i++)1... 阅读全文
posted @ 2007-04-19 09:29 Sun_china 阅读(239) 评论(0) 推荐(0) 编辑

摘要: 1function deleteAllSome() 2 { 3 var inputs=document.all.tags("input"); 4 5 var Leng=0; 6 7 for(var i=0; i<inputs.length; i++) 8 { 9 if(inpu... 阅读全文
posted @ 2007-04-19 09:27 Sun_china 阅读(307) 评论(0) 推荐(0) 编辑

2007年4月18日 #

摘要: 模式窗口中点击按钮让父窗口跳转到新的页面,不可用 opener.document.location 方式来设置,只能在父窗口把当前window对象传递到模式窗口,模式窗口使用 dialogArguments 来获得父窗口对象。父窗口(需要把当前页面window对象传递到模式窗口页面) test 弹出的模式窗口 确认跳转到新的页面? 阅读全文
posted @ 2007-04-18 17:26 Sun_china 阅读(664) 评论(0) 推荐(0) 编辑

摘要: 前台逻辑判断判断字段为空: > 字段转换: > 阅读全文
posted @ 2007-04-18 17:24 Sun_china 阅读(376) 评论(0) 推荐(0) 编辑

摘要: 看论坛里很多人都在问如果获取GridView当行的问题,当然解决这个问题有好几个方法:1 加RowCommand事件中,判断请求的发出按钮控件名,根据传递的参数来获取当前行中我们需要的参数。2 GridView设置datakeynames方式。……以上方法实现不再累赘。今天给大家介绍一种最方便,也最满足日常思维的好办法:采用控件事件的sender的Parent来获取cell对象,再取cell的上级... 阅读全文
posted @ 2007-04-18 17:21 Sun_china 阅读(595) 评论(0) 推荐(0) 编辑

摘要: T_SQL语句复制表的方法 我在SQL SERVER 2000中有现个数据库DATAHR及DEMO,它们的结构是一样,其它有一个表名为:GBITEM.现在我想将DEMO数据库的表名:GBITEM的全部内容复制到DATAHR数据库的表名为:GBITEM中。请问此T-SQL语句应该怎么写? 谢谢高人指点! 如果目的表已经存在:insert into DATAHR.DBO.GBITEMselect *... 阅读全文
posted @ 2007-04-18 17:01 Sun_china 阅读(568) 评论(0) 推荐(0) 编辑

摘要: 注意这里是用post的方法,一定要写post头的,以指明post文档类型,用get方法是a.aspx?id=1&jj=4这样用的目标文件用request就可以收了 阅读全文
posted @ 2007-04-18 16:55 Sun_china 阅读(331) 评论(0) 推荐(0) 编辑

摘要: 正在处理您的请求... 查询表内容SELECT 表名=case when a.colorder=1 then d.name else '' end,表说明=case when a.colorder=1 then isnull(f.value,'') else '' end,字段序号=a.colorder... 阅读全文
posted @ 2007-04-18 14:27 Sun_china 阅读(626) 评论(0) 推荐(0) 编辑

摘要: window.showModalDialog("SightFckEditor.aspx",a,"status=yes");//a 是要传的对象的名到另外的一个页面是使用的是window.dialogArguments.value 得到当前页面的值 在赋回去锚点的问题是 执行的顺序是先执行的是onclick 事件 在执行的是href 但是也可以使用 window.dialogArguments.fo... 阅读全文
posted @ 2007-04-18 14:17 Sun_china 阅读(380) 评论(0) 推荐(0) 编辑

摘要: FCKeditorAPI中文用例说明function abc() { var checkContent =FCKeditorAPI.GetInstance("editor");//获取实例 alert(checkContent.GetXHTML());//获取当前内容 var newelement = document.createElement("a"); newelement... 阅读全文
posted @ 2007-04-18 13:48 Sun_china 阅读(406) 评论(0) 推荐(0) 编辑