摘要: 如果电脑上没有Microsoft.Office.Interop.Excel.dll去找DLL下载站下载即可 需要先导入这个dll的引用 呈上代码: using System; using System.Collections.Generic; using System.ComponentModel; 阅读全文
posted @ 2017-02-12 14:27 智取 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 这里有检查用户是否存在,密保问题的绑定以及用户的注册的功能: 准备内容:数据库: USE master GO IF EXISTS (SELECT * FROM sys.sysdatabases WHERE name='stus') DROP DATABASE stus GO CREATE DATAB 阅读全文
posted @ 2017-02-12 14:22 智取 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 这里有一个实体类: public class Menuss { public int Id { get; set; } public string Text { get; set; } public int Fid { get; set; } } 一般我们都是用DataTable返回数据 strin 阅读全文
posted @ 2017-02-12 14:20 智取 阅读(1400) 评论(0) 推荐(1) 编辑
摘要: 1.(int)变量名[强制类型转换] 该转换方式主要用于数字类型之间的转换,从int类型向long,float,double,decimal 类型转换可以使用隐式转换,但从long型到int 就需要使用显示转换,即使用该类型的转换方式否则产生编译错误。 该方式对于浮点数会无条件的舍去,会失去精确度 阅读全文
posted @ 2017-02-12 14:19 智取 阅读(626) 评论(0) 推荐(0) 编辑
摘要: 原帖链接:http://user.qzone.qq.com/369175376/2 控制器的Action: public ActionResult Index3() { //ViewBag.list1 = db.Users.ToList().Select(a => new SelectListIte 阅读全文
posted @ 2017-02-12 11:46 智取 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 原帖链接:http://user.qzone.qq.com/369175376/2 第一步:先添加css和js <!--响应式,约束缩放--> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-sc 阅读全文
posted @ 2017-02-12 11:43 智取 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 数据库:部门表和员工表在控制器里面的操作: public ActionResult Index3() { ViewBag.departments = new SelectList(getDepartments(),"d_id","d_name");//部门数据 return View(); } pr 阅读全文
posted @ 2017-02-12 11:40 智取 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 原帖:http://user.qzone.qq.com/369175376/infocenter?ptlang=2052 第一步:先到http://ueditor.baidu.com/website/download.html去下载 第二步:把下载的文件改成ueditor名称,添加到Content文 阅读全文
posted @ 2017-02-12 11:38 智取 阅读(912) 评论(0) 推荐(0) 编辑