2011年9月18日
摘要: PrivateSubGetImage()TryDimrequestAsHttpWebRequest=WebRequest.Create("http://www.junjv.com/GetImage")request.Timeout=20000request.ServicePoint.ConnectionLimit=100request.ReadWriteTimeout=30000request.Method="GET"DimresponseAsHttpWebResponse=request.GetResponse()If(response.StatusC 阅读全文
posted @ 2011-09-18 14:03 Konimeter 阅读(1331) 评论(0) 推荐(0) 编辑
摘要: #region同步通过GET方式发送数据///<summary>///通过GET方式发送数据///</summary>///<paramname="Url">url</param>///<paramname="postDataStr">GET数据</param>///<paramname="cookie">GET容器</param>///<returns></returns>publicstringSendDataB 阅读全文
posted @ 2011-09-18 13:38 Konimeter 阅读(4605) 评论(0) 推荐(0) 编辑
摘要: PrivateFunctiongetSourceHtml()AsStringDimresultAsString=""TryDimiAsInteger=Int(Rnd(Now.Second)*10+1)DimwebAsNewSystem.Net.WebClient()web.Headers.Add("Content-Type","application/x-www-form-urlencoded")DimdAsByte()=System.Text.Encoding.UTF8.GetBytes("method=copy& 阅读全文
posted @ 2011-09-18 01:03 Konimeter 阅读(4014) 评论(0) 推荐(0) 编辑
摘要: 主线程中的代码Dimdelegate1AsB3D4D69AF0E1DB8A7B7EE6FDelegatedelegate1=AddressOfB3D4D69AF0E1DB8A7B7EE6FDimarAsSystem.IAsyncResultDimparam(2)AsObjectparam(0)=Meparam(1)=delegate1ar=delegate1.BeginInvoke(resStr,CallBackB3D4D69AF0E1DB8A7B7EE6FDelegate,param)耗时的操作代码PrivateFunctionB3D4D69AF0E1DB8A7B7EE6F(ByValD7B 阅读全文
posted @ 2011-09-18 00:41 Konimeter 阅读(671) 评论(0) 推荐(0) 编辑
摘要: <connectionStrings><addname="wz"connectionString="server=www.junjv.com,1234;database=redlim;UserId=sa;pwd=www.junjv.com"providerName="System.Data.SqlClient"/></connectionStrings>放在configuration节点下在vb.net中,可以使用如下代码获取:DimconnStrAsString=ConfigurationMana 阅读全文
posted @ 2011-09-18 00:31 Konimeter 阅读(942) 评论(0) 推荐(0) 编辑
摘要: PrivateFunctionvalidateClient(ByValguidAsString)AsIntegerDimresultAsInteger=0Try'读clientDimclientAsSqlDataReaderDimconnStrAsString=ConfigurationManager.ConnectionStrings("wz").ConnectionStringDimconnAsNewSqlConnection(connStr)DimcmdAsNewSqlCommand("redlim_client_getdetailbyguid&qu 阅读全文
posted @ 2011-09-18 00:19 Konimeter 阅读(1189) 评论(0) 推荐(0) 编辑