摘要: //动态的创建一个层 var str = document.createElement("div"); //创建的元素str.id = "Layer"; //设置元素的IDstr.style.position = "absolute";var sss=str.style.setAttribute;sss("left",300); //左边位置sss("top... 阅读全文
posted @ 2007-01-13 15:07 huazi4995 阅读(697) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.Offic... 阅读全文
posted @ 2007-01-13 15:03 huazi4995 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 引用自:http://www.cnblogs.com/iCeSnaker/archive/2004/07/31/29017.aspx 1、DataGrid的正反双向排序 http://dev.csdn.net/develop/article/26/26817.shtm 2、DataGrid删除确认及Item颜色交替 http://dev.csdn.net/develop/article/2... 阅读全文
posted @ 2006-12-30 18:01 huazi4995 阅读(1068) 评论(0) 推荐(1) 编辑
摘要: 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键no 可用于Table 2. 取消选取、防止复制 3. onpaste="return false" 不准粘贴 4. oncopy="return false;" oncut="return false;" 防止复制 5. IE地址栏前换成自己的图标 6. 可以在收藏夹中显示... 阅读全文
posted @ 2006-12-30 11:49 huazi4995 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1. 如何让选中的一行记录高亮显示? http://topic.csdn.net/t/20050105/09/3699823.html2. 如何在下拉列表框里选择一个值后跳出新窗口? http://topic.csdn.net/t/20050107/15/3707444.html3. 如何在JSP中启动execl? http://community.csdn.net/Expert/To... 阅读全文
posted @ 2006-12-27 09:02 huazi4995 阅读(485) 评论(1) 推荐(0) 编辑
摘要: ArrayList的使用方法【转载】 转自: http://i.yesky.com/bbs/jsp/view.jsp?articleID=889992&forumID=150 1、什么是ArrayList ArrayList就是传说中的动态数组,用MSDN中的说法,就是Array的复杂版本,它提供了如下一些好处: 动态的增加和减少元素 实现了ICollection和IL... 阅读全文
posted @ 2006-12-26 15:25 huazi4995 阅读(247) 评论(0) 推荐(0) 编辑
摘要: private void DG_TO_Excel(){ Response.clear(); Response.Buffer=true; Response.Charset="GB2312"; Response.AppendHeader("content-Disposition","attachment;fil... 阅读全文
posted @ 2006-12-08 21:21 huazi4995 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 限制输入中文function regex(){var regex =^[A-Za-z0-9]+$ /i;var str = document.form1.name1.value;var result = regex.test(str);alert(result);}每一项都是js中的小技巧,但十分的实用! 1.document.write(""); 输出语句 2.JS中的注释为// 3.传... 阅读全文
posted @ 2006-12-06 17:16 huazi4995 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 效果图如下: ajaxDataGrid ... 阅读全文
posted @ 2006-12-06 15:03 huazi4995 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 这个是一个webservice方法,返回一个DATASET [WebMethod(Description="得到市")] public DataSet GetChengShi(string strType) { string strcon="server=(local);database=lsa_anqiu;uid=sa;pwd=sundun";... 阅读全文
posted @ 2006-12-05 17:50 huazi4995 阅读(378) 评论(0) 推荐(0) 编辑