摘要: C# 发送邮件代码1 MailMessage mailMsg = new MailMessage(); //using System.Net; 引用2 mailMsg.From = new MailAddress("lcfhn168@163.com", "lichunfa... 阅读全文
posted @ 2015-09-05 22:46 每天进步一点点! 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 1)创建控制器生成代码如下(增删改查。。。)using MvcApplication32.Models;using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.... 阅读全文
posted @ 2015-09-05 07:24 每天进步一点点! 阅读(1353) 评论(0) 推荐(0) 编辑
摘要: MVC4 经典增删改查详情demo源码 不解释Mvc4增删改查详情Demo.7z public ActionResult Detail(int? id) { ViewData.Model = db.UserInfo.Find(id.Value); //相当于数据集合 return View(); ... 阅读全文
posted @ 2015-09-05 06:13 每天进步一点点! 阅读(609) 评论(0) 推荐(0) 编辑
摘要: @model IEnumerable 后台是集合类型了 ,传到前台是model了,用IEnumerable Index @foreach (UserInfo item in ViewData["data"] as List) { @i... 阅读全文
posted @ 2015-09-05 03:38 每天进步一点点! 阅读(732) 评论(0) 推荐(0) 编辑