- 博客(19)
- 资源 (13)
- 收藏
- 关注
转载 mvc linq多表查询 viewModel
最近在开发mvc3的时候发现了一个问题,就是如何在view页面显示多表查询的数据,最简单的办法就是使用viewmodel了,以下本人使用viewmodel来实现多表查询的3中方法,先贴代码再说:1 第一种是将页面显示多表的数据(也就是汇总各个model表的字段),然后再viewmodel中显示1 public class ResultAdList2 {3
2013-09-29 14:42:25 2634
转载 详解ASP.NET MVC pager 分页
ASP.NET MVC框架已经进入2.0时代,本文将从ASP.NET MVC数据分页谈起,希望能对大家有所帮助。在网页上进行表格资料或其他显示资料的分页是一种十分常见的需求,以前我们有 GridView 或 DataPager 可以帮我们自动分页,虽然到了 ASP.NET MVC 一切全部重头来过,但我们也不用真的那麽辛苦的自己实做分页,因为早就有人帮我们写好程式并开放原始码分享给这个世界了。
2013-09-23 09:24:01 1389
转载 xml 二进制数据 传输处理
XML中的数据无论采用CASTOR还是JDOM框架都可以进行对图片、文件的传输和处理。在内存中他们以byte[]来表示和存储。下面以文件的方式进行了说明,特别注意的是对于二进制要采用64编码的方式表示在XML文件中。import org.jdom.Document;import org.jdom.Element;import org.jdom.JDOMException;impor
2013-09-22 10:22:34 2129
转载 Improving the Details and Delete Methods
In this part of the tutorial, you'll make some improvements to the automatically generatedDetails and Delete methods. These changes aren't required, but with just a few small bits of code, you can e
2013-09-19 05:56:04 1338
转载 Adding Validation to the Model
In this section you'll add validation logic to the Movie model, and you'll ensure that the validation rules are enforced any time a user attempts to create or edit a movie using the application.Keep
2013-09-19 05:51:50 1045
转载 Adding a New Field to the Movie Model and Table
In this section you'll make some changes to the model classes and learn how you can update the database schema to match the model changes.Adding a Rating Property to the Movie ModelStart by adding
2013-09-19 05:45:55 1135
转载 Examining the Edit Methods and Edit View
In this section, you'll examine the generated action methods and views for the movie controller. Then you'll add a custom search page.Run the application and browse to the Movies controller by appen
2013-09-19 05:41:07 1250
转载 Accessing your Model's Data from a Controller
In this section, you'll create a new MoviesController class and write code that retrieves the movie data and displays it in the browser using a view template. Be sure to build your application before
2013-09-19 05:37:01 898
转载 Adding a Model
Adding a ModelIn this section you'll add some classes for managing movies in a database. These classes will be the "model" part of the ASP.NET MVC application.You’ll use a .NET Framework data-acce
2013-09-19 05:33:30 832
转载 Adding a View
In this section you're going to modify the HelloWorldController class to use view template files to cleanly encapsulate the process of generating HTML responses to a client.You'll create a view temp
2013-09-19 05:32:09 1199
转载 Adding a Controller (C#)
MVC stands for model-view-controller. MVC is a pattern for developing applications that are well architected and easy to maintain. MVC-based applications contain:Controllers: Classes that handle i
2013-09-19 05:31:03 828
转载 Intro to ASP.NET MVC 3 (C#)
TweetThis tutorial will teach you the basics of building an ASP.NET MVC Web application using Microsoft Visual Web Developer 2010 Express Service Pack 1, which is a free version of Microsoft Visua
2013-09-19 05:28:52 1010
转载 Html.RenderPartial与Html.RenderAction 用法
mvc renderaction renderpartial 杂谈 Html.RenderPartial与Html.RenderAction这两个方法都是用来在界面上嵌入用户控件的。 Html.RenderPartial是直接将用户控件嵌入到界面上: 或 注意:用第一种方法时,用户控件必须放在调用者同一目录下,也可以
2013-09-14 02:21:04 9560
转载 10款免费且开源的项目管理工具
在任何一个项目开发或设计中,项目管理被认为最重要的过程之一,因此,选择一款适宜的项目管理工具尤为重要。项目管理是指管理项目计划、定义、监控、控制以及确认交付的过程,因此它的优势也是被公认的。随着各个领域特定项目管理需求的提升,这就需要一个更好的、免费的项目管理工具来管理。因此一款高效的、良好的项目管理必须具备快速的、强大的且包含以下功能:调度、成本控制、资源分配、预算管理、文档、协作以及沟通。
2013-09-14 00:08:20 1220
原创 C# 先数字后字符的排序方法
C# 先数字后字符的排序方法 发现前一篇文章在sql中的排序还是有太多不尽人意的地方,因而花了一些时间到看了一些外文网站,找到了以下的方法。 public class AlphanumComparatorFastString : IComparer { public int Compare(string s1, string s2) {
2013-09-10 11:36:08 2065 3
原创 先数字后字符的排序 PATINDEX 并且要支持简体 繁体 最好直接在mssql里实现
最近公司有个任务是:先数字后字符的排序,并且要支持简体,繁体最后直接在mssql里实现.研究了将近一天半,终于成功! 通过以下三步可以实现第一步:将database的排序规则修改成 COLLATE Chinese_PRC_CI_AI ALTER database SSC_20130605 COLLATE Chinese_PRC_CI_AI 第二步:写好排序Fu
2013-09-06 15:16:05 1057
转载 原型开发工具 10 tool
http://www.smashingapps.com/2013/07/05/the-ultimate-collection-of-prototype-and-wireframe-tools-for-mobile-and-web-design.htmlBy Akhter on July 5, 2013The Ultimate Collection Of Prototype And
2013-09-05 09:09:07 1758
转载 PagerHelper for ASP.NET MVC3
PagerHelper for ASP.NET MVC3 makes it easier for add pagination to your website.First, implement IPagable in any viewmodel that you have in your project that you want to enhance with Pagination
2013-09-03 09:18:30 714
转载 Asp.Net MVC 路由
在这篇教程中,我将为你介绍每个ASP.NET MVC应用程序都具有的一个重要功能,称作ASP.NET路由(ASP.NET Routing)。ASP.NET路由模块负责将即将到来的浏览器请求映射到特定的MVC控制器动作。学完这篇教程之后,你将会理解标准的路由表是如何将请求映射到控制器动作的。1. 理解默认路由表当你创建一个新的ASP.NET MVC应用程序时,应用程序已经被配置为使用ASP.
2013-09-01 16:08:16 697
C# 获取IE firefox 浏览器 url
2014-06-25
JQuery-EasyUI+Asp.net Demo code
2014-02-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人