- 博客(10)
- 资源 (1)
- 收藏
- 关注
转载 关于文件上传控件FileUpload的使用
需要区分客户端和服务端操作,这个逻辑上的问题。出于安全考虑,在服务端使用语句FileUpload1.PostedFile.FileName直接取文件上传控件文本框的值是文件名而非客户端文件的绝对路径(IE8特殊,取的是绝对路径)。此外,FileUpload1.FileName取的是文件名。那么,如果需要直接使用文件绝对路径访问文件时,逻辑上可能已经范了错误。例如下面的情况:需要对客户端选择的文
2010-01-27 08:53:00
520
转载 GridView单元格border设置为none
1.后台 GridView1.DataSource = dt; GridView1.DataBind(); if (dt != null && dt.Rows.Count > 0) { #region 设置gridview1
2010-01-20 17:26:00
1016
转载 RadioButtonList和CheckBoxList的JS操作
是 否 $(document).ready(function() { var radioBtnList1=document.all("RadioButtonList1"); var txt=document.all("txt1"); var checkli
2010-01-20 10:59:00
541
转载 唐寅
桃花坞里桃花庵,桃花庵下桃花仙。 桃花仙人种桃树,又摘桃花换酒钱。 酒醒只在花前坐,酒醉还来花下眠。 半醉半醒日复日,花落花开年复年。 但愿老死花酒间,不愿鞠躬车马前。 车尘马足显者事,酒盏花枝隐士缘。 若将显者比隐士,一在平地一在天。 若将花酒比车马,彼何碌碌我何闲。 别人笑我太疯癫,我笑他人看不穿。 不见五陵豪杰墓,无花无酒锄作田。
2010-01-18 14:38:00
373
转载 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
63
转载 GridView前台行的添加和删除(JS操作)
function addline()//gridview添加行 { //debugger; //定义新行各单元格的innerHTML字符串 //添加新行 var r=gridview1.insertRow(); var c1= r.insertCell();
2010-01-14 14:22:00
3567
1
转载 实用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
280
转载 异步提交的处理
1.定义变量2. function saveLines(){ // debugger; var gridview1=document.getElementById(""); //取其他页面参数 //多行时使用分割符累加,存进数组........ alert("保存成功!"); AjaxRequestobj(); if(confirm)
2010-01-14 14:05:00
214
转载 表格行的移动和排序(含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
353
转载 asp.net文本框验证输入
//使用验证方法 if (!InputValidator(txt.Text.Trim())) { ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "myScript", "alert(/"文本框/"输入了非法字符或输入超长!);", true);
2010-01-14 13:48:00
834
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人