08 2015 档案
摘要:调用wcf public ActionResult Index() { ViewBag.Message = "修改此模板以快速启动你的 ASP.NET MVC 应用程序。"; WCFTestClient wcf=new WCFTestClie...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 四舍五入小算法{ public class Math...
阅读全文
摘要:自定义helper类,要求命名空间在System.Web.Mvc之下,要求,静态类,静态方法,特殊生成对应html的返回字段, 传递Htmlhleper,返回特定类型 返回值是MvcHtmlString ,参数要有:this HtmlHelper htmlHelperusing System;usi...
阅读全文
摘要:using ConsoleAppDelegate;using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebC...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcForLamadaToTableJion.Controllers{ ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcEnum.Controllers{ public class H...
阅读全文
摘要:自定义window 服务开发到使用的流程:1、完成对应的代码之后(代码在底下),右键MyService.cs 添加安装程序2、添加window服务安装程序打开Service1.cs【设计】页面,点击右键,选择【添加安装程序】,会出现serviceInstaller1和serviceProcessI...
阅读全文
摘要:1、xpath 操作XML,底下部分代码被注释了,但是是完整功能,去除注释是正常使用的(有写命名和其他冲突,所以注释了)总体有:完整读取xml,对xml的增删改查,对xml的特定操作using System;using System.Collections.Generic;using System....
阅读全文
摘要:常规过滤器,及过滤器与特性这类关系请自己学习,以下是实用中的几个demo,主要有(过滤器在controller的使用,自定义,全局过滤器)1、控制器中的使用 // // GET: /TestAttribute/ /// ///可以查看当前Controlle...
阅读全文
摘要:static void Main(string[] args) { DateTime startTime = DateTime.Now; string userName = "用户a"; string setInfo ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文