//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#中的正则表达式来判定....
c#认证URL格式
最新推荐文章于 2024-04-11 10:19:19 发布