Quantcast
Channel: 非苔笔记
Browsing latest articles
Browse All 10 View Live

C#自动化控制IE浏览器

添加一个.NET引用和一个COM组件引用: Microsoft.mshtml Microsoft Internet Controls 添加命名空间: using … 继续阅读 →

View Article



ASP.NET MVC Razor 禁用默认母版页

ASP.NET MVC4 Razor引擎 禁用默认母版页,实现多母版页,多主题调用。 继续阅读 →

View Article

This request has been blocked because sensitive information

想在ASP.NET MVC 中的控制器中返回一个Json对象,结果调用时报错: This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET...

View Article

C#将Json对象序列化和反序列化

在做Web开发时,需要将对象或者对象集合以Json对象返回给客户端或者接受来自客户端的json数据。C#给出了非常方便的方法。 程序集:Newtonsoft.J … 继续阅读 →

View Article

ASP.NET MVC 基于滚动条事件的jQuery Ajax 分页

分页一直是Web开发中不可或缺的主题。在使用Gmail邮箱时,发现每当滚动条到达底端时,收件箱中的邮件都会自动更新一部分,这样就间接地避免了分页。另外在使用Wo … 继续阅读 →

View Article


ASP.NET 读取Cookie被分号截断

Asp.NET中包含分号的Cookie值被截断,不能正常读取,可以通过Base64转换的方式来解决。 继续阅读 →

View Article

Azure Web Role Session 管理

默认的Session处理机制 基于Azure Storage 基于Azure SQL Server 基于Azure Cach 继续阅读 →

View Article

ASP.NET WebConfig 启用SessionState后500 – Internal server error.

请仔细检查是不是在system.web节点下对sessionState有多次设置。 我就犯了这个低级错误,浪费了3个小时的时间,第二天突然发现! 继续阅读 →

View Article


Asp.Net MVC下载文本文件

通过Response对象将文件输出给客户端,浏览器会自动识别并提示下载文件。 继续阅读 →

View Article


CS0012: The type ‘System.Object’ is defined in an assembly that is not...

Compiler Error Message: CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral,...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images