摘要: 前台页面: '> '> ' CommandName="edit">编辑 ' CommandName="delete">删除 '> ... 阅读全文
posted @ 2015-01-22 12:37 Bodyjiang 阅读(1665) 评论(0) 推荐(0) 编辑
摘要: 这个是效果图 首先分析下,我们需要两个下拉框 首先要动态绑定班级的,这个很好实现,怎么让学生下拉框也出来,并显示请选择学生呢?public ActionResult Index() { ViewData["class"] = getByItem(); ViewData... 阅读全文
posted @ 2015-01-22 12:36 Bodyjiang 阅读(2349) 评论(1) 推荐(1) 编辑
摘要: 先看下效果图: 前台View页面跟之前的ASP.NET WebForm 差不多,只需要把post提交请求的路径改成/控制器/动作,绑定的参数改动下,开看源码:" %> Index 编号: 姓名: 密码: 性别: 年龄: ... 阅读全文
posted @ 2015-01-22 12:34 Bodyjiang 阅读(658) 评论(0) 推荐(0) 编辑
摘要: 两张表: 班级表和学生表: 最终想获得学生的姓名、密码、性别、年龄、住址、爱好、班级名称、班级所学方向var temp=from a in _db.student join b in _db.classes on a.c_id equals b.id ... 阅读全文
posted @ 2015-01-22 12:33 Bodyjiang 阅读(1698) 评论(0) 推荐(1) 编辑
摘要: 将上图数据保存到execl//导出到execl protected void Execl_Click(object sender, EventArgs e) { System.Web.UI.Control ctl = this.Repeater1; //Repeat... 阅读全文
posted @ 2015-01-22 12:31 Bodyjiang 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Microsoft SQL Server 2008 R2数据库附加报错5120,是权限的问题解决办法:邮件数据库文件的属性选中Authenticated Users然后选中编辑把完全控制勾选上单击确定,然后就可以附加数据库了 !若有疑问可以联系我www.jiangyong.net.cn,里面有我的Q... 阅读全文
posted @ 2015-01-22 12:30 Bodyjiang 阅读(1449) 评论(0) 推荐(0) 编辑
摘要: 十进制数由0~9共10个数字字符组成,在十进制数的每一位上满十进一,在十进制每一位中表示最大数字为9.二进制数由0和1两个数字字符组成,在二进制中“逢二进一”,在二进制每一位中表示最大数字为1.八进制是由0~7共8个数字字符组成,在八进制中“逢八进一”,在八进制中每一位中表示最大数字为7.十六进制是... 阅读全文
posted @ 2015-01-22 12:28 Bodyjiang 阅读(28705) 评论(0) 推荐(2) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 项目{ internal class Program { public struct Student ... 阅读全文
posted @ 2015-01-22 11:28 Bodyjiang 阅读(2168) 评论(0) 推荐(0) 编辑
摘要: 以值传递参数当实参当作值来传递时,就产生了一个新的拷贝。 class Test { static void Main(string[] args) { int x=8; Fo(x); Console.WriteLine("x={... 阅读全文
posted @ 2015-01-22 11:27 Bodyjiang 阅读(13081) 评论(1) 推荐(0) 编辑
摘要: drop procedure Emp_fycreate procedure Emp_fy(@rows int,@page int,@tabName varchar(20))asdeclare @str varchar(2000)set @str='select top '+STR(@rows)+' ... 阅读全文
posted @ 2015-01-22 10:47 Bodyjiang 阅读(138) 评论(0) 推荐(0) 编辑