12 2016 档案
摘要:参考: .Net HttpWebRequest.GetResponse() raises exception when http status code 400 (bad request) is returnedC# codeusing System;using System.IO;using Sy
阅读全文
摘要:ASP.NET Routing Other Versions ASP.NET routing enables you to use URLs that do not have to map to specific files in a Web site. Because the URL does n
阅读全文
摘要:也许这么做是有意义的。 1. 路由配置 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Routin
阅读全文
摘要:MS UI Automation(Microsoft User Interface Automation:UIA)是随.net framework3.0一起发布的,虽然在如今这个几乎每天都有各种新名词、新技术出来的所谓的21世纪,它显得已经有些过时了。前些日子,正好一个项目,可以用到它,又重新整理了
阅读全文
摘要:解决跨域调用服务并设置headers 主要的解决方法需要通过服务器端设置响应头、正确响应options请求,正确设置 JavaScript端需要设置的headers信息 方能实现。 1.第一步 服务端设置响应头,在webapi的web.config做如下设置 <system.webServer> <
阅读全文
摘要:脚本由 Inno Setup 脚本向导 生成!; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!#define MyAppName "XX管理系统"#define MyAppVersion "1.0"#define MyAppPublisher "彭小波"#define MyAp
阅读全文
摘要:Sub filter1()Rem MsgBox ("AAAAA")Rem 1 get selected zoneRem 2 loop rows and check columnRem 3 if true then hide it Dim pos, total Rem 获取行数total = Shee
阅读全文
摘要:设置ASP.NET页面不被缓存分类:ASP.NET (3531) (1) /// <summary> /// 设置页面不被缓存 /// </summary> private void SetPageNoCache() { Response.Buffer = true; Response.Expire
阅读全文
摘要:internal class HideOnStartupApplicationContext : ApplicationContext { private Form mainFormInternal;// 构造函数,主窗体被存储在mainFormInternal public HideOnStart
阅读全文