会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
龙之家园
我的博客我做主!
公告
日历
导航
博客园
首页
新随笔
新文章
联系
订阅
管理
2008年2月23日
GridView 72般绝技
摘要: 快速预览: GridView无代码分页排序 GridView选中,编辑,取消,删除 GridView正反双向排序 GridView和下拉菜单DropDownList结合 GridView和CheckBox结合 鼠标移到GridView某一行时改变该行的背景色方法一 鼠标移到GridView某一行时改变该行的背景色方法二 GridView实现删除时弹出确认对话框 GridView实现自动编号 Gri...
阅读全文
posted @ 2008-02-23 16:56 zhengfeng
阅读(237)
评论(0)
推荐(0)
编辑
2008年1月23日
链接打开固定大小的新窗口
摘要: 前台页面: ','List','scrollbars=yes,width=740,height=480')"> 后台页面: this.btnFuJian.Attributes.Add("onclick", "window.open('/FuJianList.aspx?infoid=" + infoid + "','List','scrollbars=yes,width=740,height=48...
阅读全文
posted @ 2008-01-23 17:14 zhengfeng
阅读(826)
评论(0)
推荐(0)
编辑
2008年1月17日
iframe传值和自适应高度
摘要: iframe传值 用于跳转页面的同时,向多个框架传值 '" > paimai为框架标识 iframe自适应高度 用法:win 为iframe标识
阅读全文
posted @ 2008-01-17 20:23 zhengfeng
阅读(1205)
评论(0)
推荐(0)
编辑
页面传参
摘要: Request.QueryString[ "varname "]是以get方式接收的值。 Request.Form[ "varname "]接收post过来的值。 QueryString, Form, ServerVariables, and Cookies这四个分别接收不同的客户端值。
阅读全文
posted @ 2008-01-17 12:55 zhengfeng
阅读(170)
评论(0)
推荐(0)
编辑
2007年12月27日
小技巧
摘要: 1.只能输入英文和数字 2.判断文本框输入字符,及时提示 前台脚本: 还有: 200字字 3.执行前台页的脚本 前台脚本: 后面代码: if (!string.IsNullOrEmpty(Request["errMessage"])) { string errMsg = Request["errMessage"]; ...
阅读全文
posted @ 2007-12-27 17:26 zhengfeng
阅读(261)
评论(0)
推荐(0)
编辑
2007年12月24日
js表单验证控制代码大全
摘要: 1. 长度限制 <script> function test() { if(document.a.b.value.length>50) { alert("不能超过50个字符!"); document.a.b.focus(); return false; } } </script> <form name=a onsubmit="return test()">...
阅读全文
posted @ 2007-12-24 11:16 zhengfeng
阅读(353)
评论(0)
推荐(0)
编辑
2007年7月23日
自己写的递归方法复制文件夹里面的内容(从源文件(里面可以有多个层次的子文件夹)到一个文件夹)
摘要: private void CopyFile(string source, string destination) { bool flag = true; if (!Directory.Exists(destination) && flag == true) { ...
阅读全文
posted @ 2007-07-23 10:37 zhengfeng
阅读(311)
评论(0)
推荐(0)
编辑
递归写的复制文件夹及其下的内容(原样复制)
摘要: private void CopyDirection(string source, string destination) { if (!Directory.Exists(destination)) { Directory.CreateDirectory(destination); }...
阅读全文
posted @ 2007-07-23 09:33 zhengfeng
阅读(215)
评论(0)
推荐(0)
编辑
2007年7月20日
JS取得URL中的参数值
摘要:
阅读全文
posted @ 2007-07-20 15:07 zhengfeng
阅读(498)
评论(0)
推荐(0)
编辑
自己写的将文件从多个文件合并到一个文件夹的小方法
摘要: using System;using System.Collections.Generic;using System.Text;using System.IO;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { Program ...
阅读全文
posted @ 2007-07-20 11:29 zhengfeng
阅读(628)
评论(0)
推荐(0)
编辑
下一页
Copyright © 2024 zhengfeng
Powered by .NET 8.0 on Kubernetes