上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: 1. 用Html.BeginForm(ActionName,ControllerName,Post)来实现controller-action的路由,2. Form里的每个input的name值统一,比如都命名为commandName, 每个input的value设为不同值。3. 更改Action处理... 阅读全文
posted @ 2014-11-04 21:30 酒沉吟 阅读(650) 评论(0) 推荐(0)
摘要: 1.服务契约namespace Contracts{ [ServiceContract] public interface ICalculator { [OperationContract] double Add(double x,double y); ... 阅读全文
posted @ 2014-10-29 22:22 酒沉吟 阅读(358) 评论(0) 推荐(0)
摘要: 首先安装 服务端安全证书 代码如下: // 下面第一行是安装证书,第二行是将证书列入信任makecert.exe -sr LocalMachine -ss MY -a sha1 -n CN=localhost -sky exchange -pecertmgr.exe -add -r LocalMac... 阅读全文
posted @ 2014-10-20 22:27 酒沉吟 阅读(1107) 评论(0) 推荐(0)
摘要: WCF使用用户名密码验证服务契约namespace WCFUserNameConstract{ [ServiceContract] public interface IWcfContract { [OperationContract] bool Get... 阅读全文
posted @ 2014-10-19 12:53 酒沉吟 阅读(616) 评论(0) 推荐(0)
摘要: WCF开发时如何选择正确的实例模式(InstanceMode)?在使用WCF实例模型时,你是否思考过这几个的问题:”WCF中的实例模式如何正确应用”?”使用WCF中的实例模式有何原则可以遵循吗”? 众所周知:客户端调用服务时,最终会将调用服务端的某个实例来完成。在WCF服务中,可以通过Service... 阅读全文
posted @ 2014-10-15 21:32 酒沉吟 阅读(508) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2014-08-19 22:14 酒沉吟 阅读(3) 评论(0) 推荐(0)
摘要: 前台代码如下 首先判断上传的文件是否合法 后台代码 分为 单个上传和批量上传,注示部份为批量上传 还可以通过以下方式: 关于配置文件 限制上传文件大小 和上传时间 阅读全文
posted @ 2014-08-07 22:57 酒沉吟 阅读(337) 评论(0) 推荐(0)
摘要: aaa 你妹 你妹的具体内容 ... 阅读全文
posted @ 2014-07-21 10:26 酒沉吟 阅读(932) 评论(0) 推荐(0)
摘要: 虽然 [Display(Name="XXX")]已经能在页面中@Html.LabelFor(m=m.属性)中显示其值,但是不够灵活,特别是在@Html.EtitorForModel()或@Html.DisplayForModel()时,我们想要根据自己的要求来显示信息,那么我们就要根据情况实现步骤... 阅读全文
posted @ 2014-07-16 21:38 酒沉吟 阅读(1398) 评论(1) 推荐(0)
摘要: 首先说一下Model中[DataType(DataType.Password)]的作用,它表示在我们使用@Html.EditorForModel()时生成密码筐,其他的DataType一样。如果要用Vs自带的验证提示须引用 "~/Script/jquery.unobtrusive*" "~/S... 阅读全文
posted @ 2014-07-14 22:41 酒沉吟 阅读(469) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页