我们都知道,get方法,主要用来显示数据,检索之类,对数据一般不会修改。这次我做一个测试为Index方法写一个post方法。1.get方式 public ActionResult Index(string searchString) { va...
分类:
Web程序 时间:
2015-06-20 22:00:22
阅读次数:
163
ABP领域层——实体基于DDD的现代ASP.NET开发框架--ABP系列之10、ABP领域层——实体ABP是“ASP.NET Boilerplate Project (ASP.NET样板项目)”的简称。ABP的官方网站:http://www.aspnetboilerplate.comABP在Gith...
分类:
其他好文 时间:
2015-06-20 21:59:19
阅读次数:
152
使用iTextSharp在Asp.Net中操作PDF系列文章 目录http://www.cnblogs.com/CareySon/category/332146.html实战 iTextSharphttp://www.cnblogs.com/haogj/archive/2011/09/05/2167...
前言:* TheContains method is run on the database, not the c# code above. On the database,Containsmaps toSQL LIKE, which is case insensitive.这句话的意思是Conta...
分类:
Web程序 时间:
2015-06-20 20:49:15
阅读次数:
150
转载:http://www.cnblogs.com/CareySon/archive/2009/12/14/1623624.html为了看到从服务器和浏览器之间通信的HTTP头,你需要在浏览器安装一些插件.比如说Fiddler就是一个微软发布的免费的用于记录HTTP日志的软件。而这些HTTP日志会包...
分类:
Web程序 时间:
2015-06-20 20:47:15
阅读次数:
123
1.首先我们来看看普通的传值是啥样的。如图所示,我们普通的传值是这样的 1 public ActionResult Edit(int?id) 2 { 3 4 if (id == null) 5 { 6 ...
分类:
Web程序 时间:
2015-06-20 18:22:50
阅读次数:
146
1.在默认的MVC中,是根据路由来显示的。例如:通过这个链接,@Html.ActionLink("Edit", "Edit", new { id=item.ID }) *TheHtmlobject is a helper that's exposed using a property on theS...
分类:
Web程序 时间:
2015-06-20 18:17:27
阅读次数:
154
1.用来绑定后台代码如:2.是在绑定控件DataBind()方法执行时被执行,用于数据绑定如: 3.用来绑定后台的变量或方法且有返回值 的,但此时的变量名或方法的访问修饰符为protected或public如: 4.用来导入后台命名空间如:5.用来绑定web.config里的字符串(键值对)如:">...
分类:
Web程序 时间:
2015-06-20 16:55:08
阅读次数:
190
在学习ASP.NET的过程中遇到了{0,C}这样的小知识点,好奇便研究了一下,记录下来。
C#语法,按货币格式输入第一参数。所用代码为{0,C}。C是Currency的简称。
除次之外还有一些别的格式:
D或d Decimal 十进制格式
E或e Exponent 指数格式
F或f Fixed point 固定精度格式
G或g General常用格式
N或n 用逗号分...
在view视图里面@using (Html.BeginForm("uploadfile", "home", FormMethod.Post, new { enctype = "multipart/form-data"})){ }在controller [HttpPost] ...
分类:
Web程序 时间:
2015-06-20 14:19:05
阅读次数:
150