随笔分类 - Asp.Net
摘要:分布式中Redis实现Session(将Session保存到Redis)
阅读全文
摘要:try { } catch (WebException ex) { HttpWebResponse response = (HttpWebResponse)ex.Response; Console.WriteLine("Error code: {0}", response.StatusCode); using (Stream data = response.G...
阅读全文
摘要:public void ProcessRequest(HttpContext context) { //参数 string imgcid=context.Request["imgcid"]; string imgWidth = context.Request["imgWidth"]; string
阅读全文
摘要:后台通过context.Request.InputStream来接收#region 发送消息 + void SendMessage() /// /// 发送消息 /// public void SendMessage() { //CurrentCont...
阅读全文
摘要:string postUrl = "https://api.mch.weixin.qq.com/mmpaymkttransfers/gethbinfo"; //string requestStr= Utils.DCUtils.HttpPost(po...
阅读全文
摘要:当标签上写了runat="server" 后,就会无效//这是错误的写法" />//正确写法应该是去掉 runat="server",这样才能正常的使用来绑定数据" />
阅读全文
摘要:Request.url请求路径的一些属性1,Request.UrlReferrer.AbsolutePath=获取URL的绝对路径例:"/Manager/Module/OfficialManage/Issuedadocument/Issuedadocument_WorkNew.aspx"2,Requ...
阅读全文
摘要:1 引用这个命名空间using System.Web.SessionState;2 实现这两个接口中的任何一个IReadOnlySessionState //此接口只能使用session,无法修改sessionIRequiresSessionState //此接口可以使用session,也可以...
阅读全文
浙公网安备 33010602011771号