http://xiangai.taobao.com
http://shop148612228.taobao.com
上一页 1 ··· 46 47 48 49 50
摘要: SQL模糊查询,使用like比较字,加上SQL里的通配符,请参考以下: 1、LIKE'Mc%' 将搜索以字母 Mc 开头的所有字符串(如 McBadden)。 2、LIKE'%inger' 将搜索以字母 inger 结尾的所有字符串(如 Ringer、Stringer)。 3、LIKE'%en%' ... 阅读全文
posted @ 2011-05-03 10:20 万事俱备就差个程序员 阅读(240) 评论(0) 推荐(0) 编辑
摘要: SQL省市区三级表-- 表的结构 areaDROP TABLE area;CREATE TABLE area ( id int NOT NULL , areaID int NOT NULL, area varchar(200) NOT NULL, fatherID int NOT NULL, PRIMARY KEY (id))DROP TABLE city;CREATE TABLE city ( id int NOT NULL , cityID int NOT NULL, city varchar(200) NOT NULL, fatherID int NOT NULL, PRIMARY .. 阅读全文
posted @ 2011-04-29 13:37 万事俱备就差个程序员 阅读(1112) 评论(0) 推荐(0) 编辑
摘要: Implementing Edit, Details, and Delete ViewsOpen the Movie controller and add the following Details method:public ActionResult Details(int id) { Movie movie = db.Movies.Find(id); if(movie == null) return RedirectToAction("Index"); return View("Details", movie);}The code-first app 阅读全文
posted @ 2011-01-22 18:06 万事俱备就差个程序员 阅读(246) 评论(0) 推荐(0) 编辑
摘要: Adding a New Field to the Movie Model and TableIn this section you'll see how easy it is to evolve the schema of our database by simply adding another field to the Movie class. Open the Movie class and add a Rating property (column) that has a StringLength attribute applied to it:[StringLength(5 阅读全文
posted @ 2011-01-22 18:04 万事俱备就差个程序员 阅读(287) 评论(0) 推荐(0) 编辑
摘要: Adding Validation to the ModelIn this section we're going to implement the support necessary to enable input validation in the application. We'll ensure that database content is correct and provide helpful error messages to end users when they try to enter movie data that isn't valid. We 阅读全文
posted @ 2011-01-22 18:03 万事俱备就差个程序员 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Adding a Create Method and Create View In this section we're going to implement the support necessary to enable users to create new movies in the database. We'll do this by creating a controller action method that we can call using /Movies/Create on the end of the URL.Implementing the code t 阅读全文
posted @ 2011-01-22 18:00 万事俱备就差个程序员 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Accessing your Model's Data from a ControllerIn 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. Right-click the Controllers folder and make a new MoviesController class.This creates a 阅读全文
posted @ 2011-01-22 17:56 万事俱备就差个程序员 阅读(192) 评论(0) 推荐(0) 编辑
摘要: Entity Framework Code-First DevelopmentThe Entity Framework version 4 supports a development paradigm called code-first. Code-first allows you to create model object by writing simple classes (also known as POCO, from "plain-old CLR objects") and have the database created on the fly from y 阅读全文
posted @ 2011-01-22 17:55 万事俱备就差个程序员 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Adding a ViewIn this section we're going to modify the HelloWorldController class to use a view template file to cleanly encapsulate the process of generating HTML responses to a client.Let's start by using a view template with the Index method in the HelloWorldController class. Currently th 阅读全文
posted @ 2011-01-22 17:52 万事俱备就差个程序员 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Adding a ControllerMVC stands for model-view-controller. MVC is a pattern for developing applications such that each part has a separate responsibilit... 阅读全文
posted @ 2011-01-22 17:47 万事俱备就差个程序员 阅读(221) 评论(0) 推荐(0) 编辑
摘要: This tutorial will teach you the basics of building an ASP.NET MVC Web application using Microsoft Visual Web Developer Express, which is a free version of Microsoft Visual Studio. Before you start, make sure you have the prerequisites listed above installed using the Web Platform Installer.You' 阅读全文
posted @ 2011-01-22 17:45 万事俱备就差个程序员 阅读(269) 评论(0) 推荐(0) 编辑
摘要: XMLHttpRequest 对象 XMLHttpRequest可以提供不重新加载页面的情况下更新网页,在页面一加载后在服务器端请求数据,在页面加载后在服务器端接受数据,在后台向服务器发送数据。 XMLHttpRequest 对象提供了对 HTTP 协议的完全的访问,包括做出 POST 和 HEAD 请求以及普通的 GET 请求的能力。XMLHttpRequest 可以同步或异步地返回 Web 服务器的响应,并且能够以文本或者一个 DOM 文档的形式返回内容。 尽管名为 XMLHttpRequest,它并不限于和 XML 文档一起使用:它可以接收任何形式的文本文档。 XMLHtt... 阅读全文
posted @ 2011-01-13 22:09 万事俱备就差个程序员 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 遍历Request.ServerVariables Request.ServerVariables("Url")返回服务器地址Request.ServerVariables("Path_Info")客户端提供的路径信息Request.ServerVariables("Appl_Physical_Path")与应用程序元数据库路径相应的物理路径Request.ServerVariables("Path_Translated")通过由虚拟至物理的映射后得到的路径Request.ServerVariables(" 阅读全文
posted @ 2010-12-30 16:07 万事俱备就差个程序员 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 完成类似QQ邮箱中‘HTML方式查看’功能查看Office文件完成类似QQ邮箱中‘HTML方式查看’功能查看Office文件完成类似QQ邮箱中‘HTML方式查看’功能查看Office文件。 我们在做一些系统的 下载模块 或者 内部邮箱 的时候,有些使用系统的人可能并没有安装office,但是又急需查看附件的内容甚至图片等等,下载安装一个Office又不大现实(时间要求紧?在某个网吧?在朋友家里?),那么如何查看一些常用的附件呢? 其实QQ邮箱有个功能很好,它可以以 HTML方式查看 Office文件,例如Word文档、Excel表格已经PowerPoint幻灯片等,这个功能有很多实现的办... 阅读全文
posted @ 2010-12-23 09:49 万事俱备就差个程序员 阅读(421) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50

http://xiangai.taobao.com
http://shop148612228.taobao.com
如果您觉得对您有帮助.领个红包吧.谢谢.
支付宝红包
微信打赏 支付宝打赏