07 2015 档案

Razor视图
摘要:@model MvcFirstDemo.Models.UserInfo--数据库数据@using System.Data; @{ DataTable dt = ViewData["tt"] as DataTable;} 用户ID姓名年龄 @foreach (DataRow dr in dt.R... 阅读全文

posted @ 2015-07-23 16:45 gocool 阅读(101) 评论(0) 推荐(0)

aspx视图引擎 list ,遍历集合
摘要:--伪数据 list = ViewData["cc"] as List;%> 用户编号姓名年龄 ... 阅读全文

posted @ 2015-07-23 14:49 gocool 阅读(745) 评论(0) 推荐(0)