07 2015 档案
摘要:CodeSmith连接Access,Sql,Oracle,mysqlACCESS数据库1:CodeSmith选中链接类型是:ADOXSchema2:无密码的Access链接为:Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\hh\db.mdb;3:有密...
阅读全文
摘要:☆购物车实现的功能:(1)连接数据库登录,密码错误会弹窗提示,密码正确可以进入到购物车的界面。(2)点击购买,上面会自动累计您买的物品和花费的金额。(3)点击购物车可以查看您买的物品,单价和数量,可以删除。(4)点击提交订单,下面会显示出来您花费的金额和余额。(5)点击返回转到购物车界面。★ 添加一...
阅读全文
摘要:效果图:、 添加一个主页面(shou.aspx) 将整个表显示在里面,★ 往视图里添加一个Repeater的控件。将修改的超链接连接了编号上,点击编号就可以进入到修改的界面。 编号名称删除 "> ...
阅读全文
摘要:效果图:(一)连接Car表 添加一个数据库方法(myDB)namespace 连接数据库_查表{ public class myDB { private MYDBDataContext context = new MYDBDataContext(); ...
阅读全文
摘要:(一) 添加一个一般处理程序,using System;using System.Web;using System.Drawing;//引用using System.Web.SessionState;//IRequiresSessionState的命名空间public class show : IH...
阅读全文
摘要:效果图:(一)数据库操作方法:public class mydb{ private MyDBDataContext context = new MyDBDataContext(); public List Select(string AreaCode)//将中国的表全部查询 { ...
阅读全文
摘要:¤添加一个LINQ to SQl数据库;(一) 添加一个类 MyDFusing System;using System.Collections.Generic;using System.Linq;using System.Web;/// /// myDF 的摘要说明/// public class ...
阅读全文
摘要:Learn about the differences between ASP.NET MVC application and ASP.NET Web Forms applications. Learn how to decide when to build an ASP.NET MVC appli...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 兰姆表达式{ class Program { //匿名方法的写法 stati...
阅读全文
摘要:效果图:(一)controllesusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcApplication1.Models;na...
阅读全文
摘要:id改成1,代表着从第一页开始查询(一)controllesusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcApplicati...
阅读全文
摘要:(一) contyolles public ActionResult CheckUserID(string id) { // string[] s = new string[] { "1", "2", "3" }; bool isOK...
阅读全文
摘要:效果图:{(1)首先将一个网页分成四个小部分,一个一个的来做}(一)首先点击view 右键添加视图,设置一个主显示页面。@{ Layout = null;} index 淄博汉企培训教育中心 ...
阅读全文
摘要:(一)controllersusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using 下拉主外键_关系.Models;namespace 下拉...
阅读全文
摘要:(一)显示页面的主函数{controller} public class uController : Controller { // // GET: /u/ public ActionResult Index() { ...
阅读全文
摘要:(一)主页面@using MvcApplication1.Models;@model List@{ Layout = null;} Index 学号 姓名 ...
阅读全文
摘要:(一)主页面显示 代码using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcApplication1.Models;namespac...
阅读全文
摘要:(一) 表的主页的写法" %> Index 学号 姓名 性别 生日 班级 ...
阅读全文
摘要:(一)index 主页定义函数controller:控制器action:将这个也页面转到某个页面去。using mvc_1_.Models;using System;using System.Collections.Generic;using System.Linq;using System.Web...
阅读全文
摘要:委托1:using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplicartion2{ publ...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window...
阅读全文
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
阅读全文