导航

2011年3月28日

摘要: string url=@"http://gw.api.tbsandbox.com/router/rest", appkey="test", appsecret="test"; string sessionKey = @"252777593fba670770dbbbf2dd69a349ca8f6"; /// <summary> /// 获取在售商品 /// </summary> /// <returns></returns> ItemsOnsaleGetResponse 阅读全文

posted @ 2011-03-28 14:57 yjss 阅读(684) 评论(0) 推荐(0) 编辑

摘要: public static string GetUrlTitle(string url) { try { HttpWebResponse resp = HttpWebRequest.Create(url).GetResponse() as HttpWebResponse; ; using (TextReader tread = new StreamReader(resp.GetResponseStream(), System.Text.ASCIIEncoding.Default)) { string line = tread.ReadToEnd(); int endpoint = line.I 阅读全文

posted @ 2011-03-28 14:49 yjss 阅读(270) 评论(0) 推荐(0) 编辑

摘要: public static bool IsUrl(string url) { return Regex.IsMatch(url, @"^(((file|gopher|news|nntp|telnet|http|ftp|https|ftps|sftp)://)|(www\.))+(([a-zA-Z0-9\._-]+\.[a-zA-Z]{2,6})|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(/[a-zA-Z0-9\&%_\./-~-]*)?$", RegexOptions.IgnoreCase); } 阅读全文

posted @ 2011-03-28 14:47 yjss 阅读(2061) 评论(0) 推荐(0) 编辑

摘要: // ===============================================================================// Microsoft Data Access Application Block for .NET// http://msdn.microsoft.com/library/en-us/dnbda/html/daab-rm.asp//// SQLHelper.cs//// This file contains the implementations of the SqlHelper and SqlHelperParameterCa 阅读全文

posted @ 2011-03-28 14:43 yjss 阅读(361) 评论(0) 推荐(0) 编辑

摘要: 在配置文件的configuration节点下加入 <connectionStrings> <add name="名称" connectionString="Data Source=SQL实例;Initial Catalog=数据库名;User ID=用户名;Password=密码" providerName="System.Data.SqlClient" /> </connectionStrings>在代码中用System.Configuration.ConfigurationManager.Con 阅读全文

posted @ 2011-03-28 14:37 yjss 阅读(1929) 评论(0) 推荐(1) 编辑

摘要: VirtualBox 是一款功能强大的 x86 虚拟机软件,它不仅具有丰富的特色,而且性能也很优异。VirtualBox是开源软件,并提供二进位版本及开放源码版本的代码。VirtualBox 可以在 Linux 和 Windows 主机中运行,并支持在其中安装 Windows (NT 4.0、2000、XP、Server 2003、Vista、Win7、Win2008)、DOS/Windows 3.x、Linux、OpenBSD 等系列的客户操作系统。 阅读全文

posted @ 2011-03-28 12:01 yjss 阅读(928) 评论(3) 推荐(0) 编辑