liufeng

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

01 2008 档案

摘要://判断是否为字母与数字 ^[A-Za-z0-9]+$ //判断移动电话或固定电话(我是大连的,所以区号是0411) ^(?:1[35]\d{9}|0411\d{8})$ //判断年龄 ^(1[0-2]\d|\d{1,2})$ //字母数字汉字 ^[a-zA-Z0-9\u4e00-\u9fa5]+$ //判断是文件类型 ^.+\.(jpe?g|JP?G|Jp?g|GIF|Gif|gif)$... 阅读全文
posted @ 2008-01-25 17:05 嚣张的沉默 阅读(285) 评论(0) 推荐(0)

摘要:static public void OutPutExcel(DataSet ds, string typeid, string FileName) { HttpResponse resp; resp = HttpContext.Current.Response; resp.ContentEncoding = System.Text.Enco... 阅读全文
posted @ 2008-01-25 17:01 嚣张的沉默 阅读(295) 评论(0) 推荐(0)

摘要:新建一个JS文件,起个名,把以下代码复制过去 function YYYYMMDDstart() { MonHead = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; //先给年下拉框赋内容 v... 阅读全文
posted @ 2008-01-25 16:43 嚣张的沉默 阅读(968) 评论(4) 推荐(0)

摘要:1、web页上输入信息,在用户控件上显示信息的方法: 新建一个网页,取名a.aspx a.apsx.cs protected void Button1_Click(object sender, EventArgs e) { Label Label1 = (L... 阅读全文
posted @ 2008-01-22 16:31 嚣张的沉默 阅读(767) 评论(0) 推荐(0)

摘要:最近公司要做一个拍卖的功能,用户竞拍某个商品,出价高的状态那列显示领先,其它用户均显示淘汰,以前没用过Repeater,这个问题困扰了我一整天,唉,还是水平太菜呀!(按出价倒序排列,第一位为领先) 序号 姓名 数量 出价 状态 ... 阅读全文
posted @ 2008-01-22 11:14 嚣张的沉默 阅读(344) 评论(0) 推荐(0)

摘要:1、提交信息的时候按钮变为不可用并显示"提交中..." protected void Page_Load(object sender, EventArgs e) { this.btnAddUser.Attributes.Add("onclick", ClientScript.GetPostBackEventReference(btnAddUser, "Click") + ... 阅读全文
posted @ 2008-01-22 11:06 嚣张的沉默 阅读(242) 评论(0) 推荐(0)

摘要:以下代码放到之间 2。以下代码放到之间,运行即可 阅读全文
posted @ 2008-01-21 16:55 嚣张的沉默 阅读(248) 评论(0) 推荐(0)

摘要:sp_dropextendedproc 'xp_cmdshell' go sp_dropextendedproc 'xp_regaddmultistring' go sp_dropextendedproc 'xp_regdeletekey' go sp_dropextendedproc 'xp_regdeletevalue' go sp_dropextendedproc 'xp_regenumke... 阅读全文
posted @ 2008-01-13 19:47 嚣张的沉默 阅读(197) 评论(0) 推荐(0)

摘要:无标题页 阅读全文
posted @ 2008-01-12 09:12 嚣张的沉默 阅读(221) 评论(0) 推荐(0)

摘要:在运行窗口输入regedit,打开注册表编辑器,在HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager中找到PendingFileRenameOperations,删除该键值,关闭注册表编辑器。重新安装SQL Server 2000 阅读全文
posted @ 2008-01-08 21:54 嚣张的沉默 阅读(338) 评论(0) 推荐(0)