2006年4月18日
摘要:
SERVER2003服务器控件验证失效解决办法Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->首先看:aspnet_client\system_web\1_1_4322\WebUIValidation.js是否存在如果不存在:你只要把文件夹“C:\I...
阅读全文
posted @ 2006-04-18 16:16
Gary.han
阅读(374)
推荐(0)
摘要:
简单SQL语句ORACLE写法Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->--1 SQL语句中去掉字段内容两边的空格。 rtrim(ltrim(' demo '))--截去字符串前的某个字符 ltrim('1112121','1'...
阅读全文
posted @ 2006-04-18 14:17
Gary.han
阅读(288)
推荐(0)
2006年4月6日
摘要:
这样的包含方式便于搜索引擎搜索: 1 2 3 1617181920
阅读全文
posted @ 2006-04-06 10:14
Gary.han
阅读(2213)
推荐(0)
2006年4月4日
摘要:
JS去空格String.prototype.Trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, "");IFrame提示-处理: 1' target="producturl">23 对Cookie 操作: 1 if(Request.QueryString["id"]!=null&&Request.QueryStr...
阅读全文
posted @ 2006-04-04 18:17
Gary.han
阅读(1660)
推荐(0)
2005年12月28日
摘要:
注意引用方式:此项一定要加:charset="gb2312"主调函数:onfocus="calendar();" 在文本框控件上加事件。 JS代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->");document.write("");fun...
阅读全文
posted @ 2005-12-28 09:57
Gary.han
阅读(2766)
推荐(0)
2005年12月20日
摘要:
转载 --当两个或两以上的操作要么都执行,要么都执行时要用事务。1. Sql写法(事物+游标)--开始事务BEGIN TRAN--不显示计数信息SET NOCOUNT ONDECLARE @ProjNo varchar(50),@CusNo varchar(50)--声明游标DECLARE CRMPSContact_cursor CURSOR FOR SELECT ProjNoFROM CRMPS...
阅读全文
posted @ 2005-12-20 13:37
Gary.han
阅读(2065)
推荐(0)
2005年12月7日
摘要:
有些测试可能不好使,可以看着意图修改下:"^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]...
阅读全文
posted @ 2005-12-07 12:45
Gary.han
阅读(444)
推荐(0)
2005年12月2日
摘要:
自定义取出第几个分割字符前的字符串,默认位置(0)格式:dbo.split(字段名,'分隔字符',取出的第几个字符串)如果没有分隔的字符,则返回整个字符串。如果取出的位置字符串的位置超出Index则返回空。 CREATE FUNCTION [dbo].[split] (@str nvarchar(4000),@code varchar(10),@no int ) RETURNS varchar(...
阅读全文
posted @ 2005-12-02 15:18
Gary.han
阅读(4538)
推荐(0)
2005年11月23日
摘要:
首先外观显示页面代码: 1protected System.Web.UI.WebControls.Image ValidateImage; 2 3 private void Page_Load(object sender, System.EventArgs e) 4 { 5 if(!IsPostBack) 6 { 7 ...
阅读全文
posted @ 2005-11-23 10:30
Gary.han
阅读(638)
推荐(0)
2005年11月16日
摘要:
using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr...
阅读全文
posted @ 2005-11-16 09:55
Gary.han
阅读(2444)
推荐(0)