详解ASP.NET MVC数据分页
摘要:ASP.NET MVC框架已经进入2.0时代,本文将从ASP.NET MVC数据分页谈起,希望能对大家有所帮助。在网页上进行表格资料或其他显示资料的分页是一种十分常见的需求,以前我们有 GridView 或 DataPager 可以帮我们自动分页,虽然到了 ASP.NET MVC 一切全部重头来过,...
阅读全文
posted @
2015-05-20 17:46
小柑
阅读(636)
推荐(0)
在ASP.NET MVC中使用DropDownList
摘要:在ASP.NET MVC中,尽管我们可以直接在页面中编写HTML控件,并绑定控件的属性,但更方便的办法还是使用HtmlHelper中的辅助方法。在View中,包含一个类型为HtmlHelper的属性Html,它为我们呈现控件提供了捷径。我们今天主要来讨论Html.DropDownList的用法,首先...
阅读全文
posted @
2015-05-20 14:38
小柑
阅读(180)
推荐(0)
URLRouting
摘要:在ASP.NET MVC架构中,抛弃了使用页面文件(如扩展名为.aspx的页面)接收并处理用户请求的方式,统一使用了继承自System.Web.Mvc.Controller类的控制器(Controller)里面的动作(Action)来接收并处理用户的请求。我们知道,在ASP.NET MVC架构中,控...
阅读全文
posted @
2015-05-20 10:00
小柑
阅读(195)
推荐(0)
第一个小Demo(转载)
摘要:1.创建模型在文件夹"Models"中创建新类,如下图所示:1、命名:Model的命名规则一般以Model结尾,如:以业务为主的命名UserModel或以页面为主的命名LoginModel。2、作用:开发过三层的朋友都知道,我们在表示层、业务逻辑层、数据操作层进行数据传输的时候会用到的DTO一般都单...
阅读全文
posted @
2015-05-14 17:20
小柑
阅读(271)
推荐(0)
What color is your hat
摘要:QuestionA king wants his beautiful princess to marry the smartest of 3 extremely intelligent young princes, and so the king devised an intelligence te...
阅读全文
posted @
2015-05-13 15:13
小柑
阅读(377)
推荐(0)
So when is Ivy’s birthday
摘要:QuestionGary and Henry just become friends with Ivy, and they want to know when her birthday is. Ivy gives them a list of 10 possible dates.January 5 ...
阅读全文
posted @
2015-05-13 15:12
小柑
阅读(134)
推荐(0)
What are the ages of her children
摘要:Question Tom meets a new neighbor, Christina, next door to him.During the conversation with Christina, Tom asks her, “How many kids do you have?”.“Thr...
阅读全文
posted @
2015-05-13 15:09
小柑
阅读(200)
推荐(0)
Who was the murderer
摘要:QuestionThere was a murder in the home of a married couple, their son and daughter. One of these 4 people murdered one of the others.One of the member...
阅读全文
posted @
2015-05-13 15:07
小柑
阅读(266)
推荐(0)
Razor的语法
摘要:Razor是MVC3中才开始有的新的视图引擎。在ASP.NET中,添加一个试图就会让你选择使用Razor(cshtml)还是C#(ASPX)格式。ASPX的视图引擎依靠<%和%>来调用C#指令,而MVC3以后有了一套新的使用@标记的Razor语法,使用起来更灵活更简洁。Razor在语法上的美化是显而
阅读全文
posted @
2015-05-08 11:49
小柑
阅读(1642)
推荐(0)
MVC url
摘要:http://www.microsoft.com MVC2_VS2008 http://www.asp.net/mvc http://www.cnblogs.com/artech/tag/MVC/default.html?page=4
阅读全文
posted @
2015-05-06 23:01
小柑
阅读(123)
推荐(0)
MVC框架
摘要:MVC框架MVC全名是Model View Controller,是模型(model)-视图(view)-控制器(controller)的缩写,一种软件设计典范,用一种业务逻辑、数据、界面显示分离的方法组织代码,将业务逻辑聚集到一个部件里面,在改进和个性化定制界面及用户交互的同时,不需要重新编写业务...
阅读全文
posted @
2015-05-06 10:56
小柑
阅读(132)
推荐(0)