上一页 1 ··· 3 4 5 6 7 8 下一页
  2013年5月14日
摘要: 1. RenderBody在Razor引擎中没有了“母版页”,取而代之的是叫做“布局”的页面(_Layout.cshtml)放在了共享视图文件夹中。在这个页面中,会看到标签里有这样一条语句:@RenderBody()其实它的作用和母版页中的服务器控件类似,当创建基于此布局页面的视图时,视图的内容会和布局页面合并,而新创建视图的内容会通过布局页面的@RenderBody()方法呈现在标签之间。这个方法不需要参数,而且只能出现一次。2. RenderPage从名称可以猜出来这个方法是要呈现一个页面。比如网页中固定的头部可以单独放在一个共享的视图文件中,然后在布局页面中通过这个方法调用,用法如下:@ 阅读全文
posted @ 2013-05-14 10:14 朝着 阅读(166) 评论(0) 推荐(0) 编辑
摘要: <DIV style="DISPLAY: block" class="ui-datepicker-inline ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" sizcache="7" sizset="0"><DIV class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all" s 阅读全文
posted @ 2013-05-14 10:13 朝着 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 第一步、新创建一个 ASP.NET MVC3 工程。第二步、通过 NuGet 控制台直接输入命令:install-package Ninject.Mvc3安装完这个源码包之后,所有的依赖注入框架已设置完成,无须你改动任何代码,你会发现项目中添加了一个“App_Start”文件夹,在这个文件夹中生成了一个名为“NinjectMVC3.cs”的代码文件。第三步、打开 \App_Start\NinjectMVC3.cs,找到 RegisterServices 方法,将你的依赖注入映射代码直接写入即可。如 /// <summary> /// Load your modules or re. 阅读全文
posted @ 2013-05-14 10:11 朝着 阅读(181) 评论(0) 推荐(0) 编辑
  2013年5月7日
摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title> New Document </title> <meta name="Generator" content="EditPlus"> <meta name="Author" co 阅读全文
posted @ 2013-05-07 10:21 朝着 阅读(136) 评论(0) 推荐(0) 编辑
  2013年4月22日
摘要: 最近室友闲聊的时候告诉我,他在网上收集了做为一个java程序员必须要会的东西,他觉得自己要有个方向,否则一定会在平平凡凡的工作中,不思进 取,最终浑浑噩噩。真是让我猛然惊醒啊,做为一个底层的程序员,如何才能拼得过出来的大学精英和社会老手?学习一定必不可少。虽然自己有点懒,我先把这些 记下,待日后尽量弄懂。 Web/WinForm/通吃,包括ASP.NET,WebService,Remoting,Thread,Serializable,ADO.NET等命名空间精通UML精通DesignPatterns 23+N种模式:默写各个模式UML图,熟记代码实现方式,范例,以及.NET相关接口精通CLRV 阅读全文
posted @ 2013-04-22 20:18 朝着 阅读(422) 评论(0) 推荐(0) 编辑
  2013年4月21日
摘要: using System; using System.Data; using System.Xml; using System.Data.SqlClient; using System.Collections; using System.Configuration;namespace BookDAL { /// <summary> /// SqlServer数据访问帮助类 /// </summary> public sealed class SqlHelper { #region 私有构造函数和方法 private SqlH... 阅读全文
posted @ 2013-04-21 23:58 朝着 阅读(209) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Collections;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace HelloWinForm.DBUtility{ class SQLHelper { #region 通用方法 // 数据连接池 private SqlConnection con; ///... 阅读全文
posted @ 2013-04-21 23:52 朝着 阅读(222) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 图片下载 /// </summary> /// <param name="ordPath"></param> /// <param name="newPath"></param> public void ImgDownLoadFile(string ordPath, string newPath) { var newWebClient = new System.Net.WebClient(); newWebClient.Downl... 阅读全文
posted @ 2013-04-21 23:33 朝着 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1:private bool ImportSubjectQuesData(int bankId, int categoryId, int curpage, int pagesize){string postData = "bankid=" +System.Web.HttpUtility.UrlEncode(bankId.ToString(), System.Text.Encoding.ASCII);postData += "&categoryid=" +System.Web.HttpUtility.UrlEncode(categoryId.ToS 阅读全文
posted @ 2013-04-21 23:29 朝着 阅读(203) 评论(0) 推荐(0) 编辑
摘要: MatchCollection ma = Regex.Matches(contt, @"([_]+\d+[_]+)|([_]+【小题\d+】[_]*)|(【小题\d+】)", RegexOptions.Singleline | RegexOptions.Multiline | RegexOption... 阅读全文
posted @ 2013-04-21 23:20 朝着 阅读(146) 评论(0) 推荐(0) 编辑
摘要: .NET下几种常见的解析JSON方法主要类命名空间限制内建LINQ支持DataContractJsonSerializerSystem.Runtime.Serialization.Json通用否JavaScriptSerializerSystem.Web.Script.Serialization只能在Web环境使用否JsonArray、JsonObject、JsonValueSystem.Json只能在Silverlight中使用是JsonConvert、JArray、JObject、JValue、JPropertyNewtonsoft.Json通用是实体类: [DataContract... 阅读全文
posted @ 2013-04-21 21:58 朝着 阅读(166) 评论(0) 推荐(0) 编辑
摘要: var _curmenu = '{"menus": [{"menuid":"1","menuname":"系统管理","url":"../Html/List.htm","icon":"img","menus":[{"menuid":"001","menuname":"栏目管理","url": 阅读全文
posted @ 2013-04-21 21:29 朝着 阅读(238) 评论(0) 推荐(0) 编辑
  2013年4月16日
摘要: Ø 基本常用查询 --select select * from student; --all 查询所有 select all sex from student; --distinct 过滤重复 select distinct sex from student; --count 统计 select count(*) from student; select count(sex) from student; select count(distinct sex) from student; --top 取前N条记录 select top 3 * from student; --alias 阅读全文
posted @ 2013-04-16 23:51 朝着 阅读(180) 评论(0) 推荐(0) 编辑
  2013年4月10日
摘要: 1:进入DOS命令 输入cd C:\Program Files\MySQL\MySQL Server 5.5\bin 2:输入 mysql -h 192.168******* -u root -p 回车(注意 -p后面不要写密码 也不要写“;”)Microsoft Windows [版本 6.1.7601]版权所有 (c) 2009 Microsoft Corporation。保留所有权利。C:\Users\pc>cd C:\Program Files\MySQL\MySQL Server 5.6\binC:\Program Files\MySQL\MySQL Server 5.6\bi 阅读全文
posted @ 2013-04-10 11:53 朝着 阅读(811) 评论(0) 推荐(0) 编辑
  2013年3月29日
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
posted @ 2013-03-29 17:14 朝着 阅读(118) 评论(0) 推荐(0) 编辑
摘要: New Document [关闭] 阅读全文
posted @ 2013-03-29 16:32 朝着 阅读(123) 评论(0) 推荐(0) 编辑
  2013年3月28日
摘要: 注:添加服务,契约等其他项目不在介绍,上一篇文章已介绍1:创建WCF应用程序 (宿主)Host3_282:修改svc文件3:修改配置文件 4:发布 部署在IIs中5:客户端引用 添加引用http://localhost:(此处... 阅读全文
posted @ 2013-03-28 22:16 朝着 阅读(177) 评论(0) 推荐(0) 编辑
  2013年3月26日
摘要: 一:创建一个解决方案1:分别添加:控制台应用程序:Hosting(宿主)、控制台应用程序:Client(客户端)、类库:Service (服务)、类库:Contract(契约)2:添加契约:右击contract项目,添加接口 ICalcultor [ServiceContract(Name = "CalcultorService", Namespace = "http://www.artech.com")] 注意:http://www.artech.com 不能写成 http://www.artech.com/ public interface ICal 阅读全文
posted @ 2013-03-26 22:42 朝着 阅读(242) 评论(1) 推荐(0) 编辑
  2013年3月17日
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Net;using System.Net.Mail;using System.Net.Mime;namespace Email{ public partial class SMTP : System.Web.UI.Page { protected void Page_Load(ob... 阅读全文
posted @ 2013-03-17 00:19 朝着 阅读(219) 评论(0) 推荐(0) 编辑
  2013年3月15日
摘要: protected void downF() { //判断是否选择文件名 //获取文件路径//string path = Server.MapPath("File/") + Session["file"].ToString();//要下载的资源在本地 string path = @"\\192.168.1.90\wwwroot\img.cn-school.com\images\667027ee9425480e8881fd923158317d.png";//要下载的资源在某个服务器 //初始化 FileInfo 类的实例,它作为文件路. 阅读全文
posted @ 2013-03-15 17:31 朝着 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页