摘要:
C# 发送邮件代码1 MailMessage mailMsg = new MailMessage(); //using System.Net; 引用2 mailMsg.From = new MailAddress("lcfhn168@163.com", "lichunfa... 阅读全文
摘要:
1)创建控制器生成代码如下(增删改查。。。)using MvcApplication32.Models;using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.... 阅读全文
摘要:
MVC4 经典增删改查详情demo源码 不解释Mvc4增删改查详情Demo.7z public ActionResult Detail(int? id) { ViewData.Model = db.UserInfo.Find(id.Value); //相当于数据集合 return View(); ... 阅读全文
摘要:
@model IEnumerable 后台是集合类型了 ,传到前台是model了,用IEnumerable Index @foreach (UserInfo item in ViewData["data"] as List) { @i... 阅读全文