天天看点

c#认证URL格式

//Uri u = new Uri("http://community.csdn.net/Expert/");

        string urlText=this.URLhtml.Text.ToString().Trim();

        Uri u = new Uri(urlText);

        if (u.Scheme != Uri.UriSchemeHttp)

         Response.Write("error");

  还可以利用C#中的正则表达式来判定....