随笔分类 - ASP.NET
摘要:打开注册表 win+R 输入 regidit在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp位置 修改注册表 把MajorVersion的值改为9 安装Rewrite Module 恢复注册表 安装完成之后,再把MajorVersion的值改回10 重启一
阅读全文
摘要:介绍: https://support.google.com/webmasters/answer/75712?hl=zh Hans 实例: http://www.thepaper.cn/sitemap.xml
阅读全文
摘要:在任意页面获取根节点 遍历根节点 @foreach (var module in CurrentPage.Site().Children) { if (module.DocumentTypeAlias.ToString() == "LinkFolder") { foreach (var linkMo
阅读全文
摘要:51、app.config 连接字符串 <?xml version="1.0" encoding="utf-8"?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"
阅读全文
摘要:asp.net //传进来的 public BaseController(BaseHttpHandler handler, HttpContext context) // { //根据地址设置cookie string CityName = ""; if (context.Request.Cooki
阅读全文
摘要:ImageClass using System; using System.Collections; using System.IO; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Drawing2D
阅读全文
摘要:ashx using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.IO; namespace CZBK.ItcastProject.WebApp._2015_5
阅读全文
摘要:第一步: 添加盘古和lucence的dll引用 第二步: 拷贝Dict文件夹到项目 demo里面是Dictionaries 不过官方建议改成Dict 然后把所有项右击属性 改为“如果较新则复制” 第三步 创建索引库,这里是一次性把数据库里的数据 循环写入了,正常项目里可以把循环打开,每保存一个数据
阅读全文
摘要:1、下载dll 下载地址:http://mirror.reverse.net/pub/apache/logging/log4net/binaries/ github:https://github.com/apache/logging-log4net 2、添加引用 添加log4net.dll的引用(b
阅读全文
摘要:KinderEditor编辑器的使用 分为简单的三步。 1:添加引用部分 这里注意,路径记得修改!如果同样添加到了web层的根目录就不用修改了! 2:添加JS代码 3:添加文本区域代码 文件下载:链接: http://pan.baidu.com/s/1c0uajuw 密码: 4nse 如果完善上传图
阅读全文
摘要:这是我记录验证的第二篇文章,之前还有一篇是ashx一般处理程序的。 定义类: 需要添加两个引用:System.Web、System.Drawing //需要添加两个引用:System.Web、System.Drawing using System; using System.Collections.
阅读全文
摘要:刚刚对这两个进行了一下小小的测试发现当转换的内容少的时候 微软自带的比Newtonsoft速度要快一些,内容多的时候反之,当内容多到一定量的时候微软自带的就不能转换了,需要修改一下MaxJsonLength的默认值,此处我改为:999999999,这个时候可以转换了,不过时间很长。添加50个对象:添...
阅读全文
摘要:RegionsStr = RegionsStr.Remove(RegionsStr.LastIndexOf(","), 1); //去掉最后一个逗号 string html = "<dd><h1> 第二百三十六章 古神精神印记</h1></dd>"; var title = html.Split(n
阅读全文
摘要:响应报文 隐藏服务器信息 X-Powered-By:ASP.NET 这个需要在IIS中移除 HttpContext.Response.Headers.Remove("X-AspNet-Version"); HttpContext.Response.Headers.Remove("X-AspNetMv
阅读全文
摘要:需要引入一个ashx的一般处理程序! 把这个程序在前台当作一个图片使用就可以! 前台代码: cursor:pointer 光标呈现为指示链接的指针(一只手) onclick 点击切换图片 Math.random()随机数,改变切换地址,有些浏览器点击的时候不自动切换,直接调用缓存文件(如IE) 验证
阅读全文
摘要:杨中科老师 C# 赵小虎老师 C# using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptography; using Syst
阅读全文

浙公网安备 33010602011771号