上一页 1 ··· 3 4 5 6 7 8 9 下一页

2015年3月23日

摘要: 1、读取招聘单位列表信息 打开web_url指定的网站页面,并通过StreamReader对象读取网页源代码存入字符串all_code中,便于正则表达式提取。 HttpWebRequest all_codeRequest = (HttpWebRequest)WebRequest.Cr... 阅读全文
posted @ 2015-03-23 10:37 壹飛臺 阅读(201) 评论(0) 推荐(0)
 

2015年3月11日

摘要: public class BaseRepository where T : class { //实例化EF框架 DataModelContainer db = new DataModelContainer(); //添加 public T AddEntities(T entity) { db.En... 阅读全文
posted @ 2015-03-11 22:09 壹飛臺 阅读(471) 评论(0) 推荐(0)
 

2015年3月10日

摘要: 页面代码如下:Controllers代码:public ActionResult Create() { List categories = categoryService.GetAll(); ViewData["Categories"] = new SelectList(... 阅读全文
posted @ 2015-03-10 11:29 壹飛臺 阅读(225) 评论(0) 推荐(0)
 

2015年3月4日

摘要: 本文将演示如何通过 Entity Framework 数据模型创建、修改、删除数据库记录。Customer cust = new Customer() { CustomerID = "LAWN", CompanyName = "Lawn Wranglers", Contact... 阅读全文
posted @ 2015-03-04 16:07 壹飛臺 阅读(1222) 评论(0) 推荐(0)
 

2015年2月16日

摘要: 代码顺序为:OnAuthorization-->AuthorizeCore-->HandleUnauthorizedRequest 如果AuthorizeCore返回false时,才会走HandleUnauthorizedRequest 方法,并且Request.StausCode会返回401,40... 阅读全文
posted @ 2015-02-16 22:25 壹飛臺 阅读(3233) 评论(0) 推荐(0)
 

2015年1月19日

摘要: android:inputType参数类型说明android:inputType="none"--输入普通字符android:inputType="text"--输入普通字符android:inputType="textCapCharacters"--输入普通字符android:inputType=... 阅读全文
posted @ 2015-01-19 19:58 壹飛臺 阅读(515) 评论(0) 推荐(0)
 

2014年7月22日

摘要: 如果在C#中使用TransactionScope类(分布式事务),则须注意如下事项:1、在项目中引用using System.Transactions命名空间(先要在添加net组件的引用);2、具体示例如下: /// /// 发送消息 /// ... 阅读全文
posted @ 2014-07-22 15:43 壹飛臺 阅读(637) 评论(0) 推荐(0)
 

2014年7月18日

摘要: @{ ViewBag.Title = "Home Page";} 上传 取消上传 public string Upload(FormContext from) { var file ... 阅读全文
posted @ 2014-07-18 14:06 壹飛臺 阅读(242) 评论(0) 推荐(0)
 
摘要: HTML: 得到网页源代码 得到任意网页源代码 http://dotnet.aspx.cc/content.aspx ASPX:using System;using Syste... 阅读全文
posted @ 2014-07-18 13:55 壹飛臺 阅读(612) 评论(0) 推荐(0)
 

2014年7月17日

摘要: 一、认识Web.config文件Web.config 文件是一个XML文本文件,它用来储存 ASP.NET Web 应用程序的配置信息(如最常用的设置ASP.NET Web 应用程序的身份验证方式),它可以出现在应用程序的每一个目录中。当你通过.NET新建一个Web应用程序后,默认情况下... 阅读全文
posted @ 2014-07-17 13:49 壹飛臺 阅读(383) 评论(0) 推荐(0)
 
上一页 1 ··· 3 4 5 6 7 8 9 下一页