笔记
pioneer0724
这个作者很懒,什么都没留下…
展开
-
JQuery
jQuery is a new kind of JavaScript Library. jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web转载 2010-01-14 16:37:00 · 70 阅读 · 0 评论 -
asp.net文本框验证输入
//使用验证方法 if (!InputValidator(txt.Text.Trim())) { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "myScript", "alert(/"文本框/"输入了非法字符或输入超长!);", true);转载 2010-01-14 13:48:00 · 841 阅读 · 0 评论 -
表格行的移动和排序(含GridView)
//使表格行上移,接收参数为链接对象function moveUp(_a){ //通过链接对象获取表格行的引用 var _row=_a.parentNode.parentNode; //如果不是第一行,则与上一行交换顺序 if(_row.previousSibling) { if(_row.rowIndex>=2) swapNode(_row,_row.pr转载 2010-01-14 13:55:00 · 357 阅读 · 0 评论 -
实用JS语句
1.刷新父窗体window.parent.location=window.parent.location;2.刷新窗体window.location=window.location;3.按钮失效btn.disabled=true;4.获取html标签的焦点input.focus();转载 2010-01-14 14:16:00 · 283 阅读 · 0 评论 -
关于文件上传控件FileUpload的使用
需要区分客户端和服务端操作,这个逻辑上的问题。出于安全考虑,在服务端使用语句FileUpload1.PostedFile.FileName直接取文件上传控件文本框的值是文件名而非客户端文件的绝对路径(IE8特殊,取的是绝对路径)。此外,FileUpload1.FileName取的是文件名。那么,如果需要直接使用文件绝对路径访问文件时,逻辑上可能已经范了错误。例如下面的情况:需要对客户端选择的文转载 2010-01-27 08:53:00 · 529 阅读 · 0 评论 -
异步提交的处理
1.定义变量2. function saveLines(){ // debugger; var gridview1=document.getElementById(""); //取其他页面参数 //多行时使用分割符累加,存进数组........ alert("保存成功!"); AjaxRequestobj(); if(confirm)转载 2010-01-14 14:05:00 · 220 阅读 · 0 评论 -
GridView前台行的添加和删除(JS操作)
function addline()//gridview添加行 { //debugger; //定义新行各单元格的innerHTML字符串 //添加新行 var r=gridview1.insertRow(); var c1= r.insertCell();转载 2010-01-14 14:22:00 · 3576 阅读 · 1 评论