摘要:
单问号---用于给变量设初值的时候,给变量(int类型)赋值为null,而不是0! 双问号---用于判断并赋值,先判断当前变量是否为null,如果是就可以赋一个新值,否则跳过! public int? para; //public int para;如果不注释掉此行,而把上一行注释掉的话,下面会报错! public int par() { return this.para ?? 0... 阅读全文
2008年8月28日 #
2008年8月20日 #
摘要:
HttpWebRequest req; string strGet = "http://localhost:2980/Service1.asmx/HelloWorld?name="; strGet = strGet + this.TextBox1.Text; //请求的Web service的所在地址 req = ... 阅读全文
摘要:
public string CheckUrl() { Uri ComeUrl = HttpContext.Current.Request.UrlReferrer; string cUrl = string.Empty; HttpContext context = HttpContext.Current; ... 阅读全文
2008年8月5日 #
摘要:
(http|ftp|https)://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)+\.(png|jpg|gif|gif) (http|ftp|https)://(\\S+?)\\.(jpg|png|gif) private static Regex RegTel = new 阅读全文
摘要:
Regex.Replace("asdfads","[\n|\r|\t]", ""); 阅读全文
摘要:
select dbms_metadata.get_ddl('TABLE','MEETEXTENDPHONENUM') from dual ; select dbms_metadata.get_ddl('SEQUENCE',' meetextendID.nextval') from dual ; CREATE SEQUENCE "MMYEEIVRDB"."CALLI... 阅读全文
2008年7月24日 #
摘要:
create FUNCTION [dbo].[fun_RepeatCharNum] ( @CodeString varchar(2000), @RepeatString varchar(200) ) RETURNS int AS BEGIN DECLARE @RepeatStringLen int, --检测重复字符的长串 ... 阅读全文
2008年7月20日 #
摘要:
using System; using System.Collections.Generic; using System.Text; using System.Web; using System.IO; using System.Net; namespace Framework.Common { public class GatherData { #region 获... 阅读全文
2008年7月13日 #
摘要:
UpdatePanel可以用来创建丰富的局部更新Web应用程序,它是ASP.NET 2.0 AJAX Extensions中很重要的一个控件,其强大之处在于不用编写任何客户端脚本,只要在一个页面上添加几个UpdatePanel控件和一个ScriptManager控件就可以自动实现局部更新。通过本文来学习一下UpdatePanel简单的使用方法(第一篇)。 主要内容: 1.UpdatePanel控件... 阅读全文