MVC
测试接口
这个作者很懒,什么都没留下…
展开
-
jquery jsonp 跨域
前端js方法一: $(function () { $(function () { var url = "http://www.jtzk.com/common/GetjsonP?collback=?"; $.getJSON(url, function (da原创 2016-05-31 12:45:57 · 379 阅读 · 0 评论 -
mvc生成静态页 获取controller的HTML
// 参数1 控制器对象 参数2 视图名 参数3模板页名称 string htmlcode = GetViewHtml(this, "NewsInfo", "_Layout");原创 2016-07-14 16:03:39 · 3371 阅读 · 0 评论 -
Global.asax详细讲解
1 Global.asax文件的作用先看看MSDN的解释,Global.asax 文件(也称为 ASP.NET 应用程序文件)是一个可选的文件,该文件包含响应 ASP.NET 或HTTP模块所引发的应用程序级别和会话级别事件的代码。Global.asax 文件驻留在 ASP.NET 应用程序的根目录中。运行时,分析 Global.asax 并将其编译到一个动态生成的 .NET Fram转载 2017-01-17 16:34:26 · 1072 阅读 · 0 评论 -
mvc 过滤器验证身份 排除指定不验证action
namespace Test.Web{ /// /// 身份证验证过滤器 /// public class Check : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext filterContext)原创 2017-06-29 11:58:19 · 1296 阅读 · 0 评论 -
Web帮助类
web帮助类/// /// Web帮助类 /// public class WebHelper { //浏览器列表 private static string[] _browserlist = new string[] { "ie", "chrome", "mozilla", "netscape", "firefox", "o原创 2017-07-18 11:55:45 · 421 阅读 · 0 评论