摘要:
http://jingyan.baidu.com/article/49ad8bce4339425834d8fa0e.html 阅读全文
摘要:
HtmlGenericCOntrol是一个通用标签生成的类,可以用来生成js也可以用来生成任何其它的标签 自己封装的弹窗的类 public static class PageEx { /// <summary> /// /// </summary> /// <param name="page">页面 阅读全文
摘要:
普通html 分栏 <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <titl 阅读全文
摘要:
--数据库的创建一定要在master数据库当中 use master go --判断在数据库中是否含有该数据库 --如果有,则删除 if exists(select * from sysdatabases where name='stuDB') drop database stuDB go --创建数据库 create database stuDB on ( name='stuD... 阅读全文
摘要:
存储过程(procedure)类似于C语言中的函数 用来执行管理任务或应用复杂的业务规则 存储过程可以带参数,也可以返回结果 存储过程的优点 执行速度更快 允许模块化程序设计 提高系统安全性 减少网络流通量 存储过程例子 输入参数 EXEC proc_stu 60,55 --或这样调用: EXEC 阅读全文
摘要:
1.为什么要事务 假定张三的账户直接转账1000元到李四的账户 目前两个账户的余额总和为:1000+1=1001元 模拟实现转账 : 从张三的账户转账1000元到李四的账户 张三的账户没有减少 但李四的账户却多了1000元 1000+1001=2001元 总额多出了1000元! --违反约束 执行失 阅读全文
摘要:
create database Test go use Test go create Table UserInfo( userid int identity(1,1) primary key, username nvarchar(10) not null ) insert into UserInfo 阅读全文
摘要:
前面写了两篇 前台分页。但是数据少还行 ,条数上千,浏览器就反映迟钝,卡得要死,容易导致浏览器崩溃,用户体验非常不好 。 效果图 前端页面: <div> <%-- OnPageIndexChanging="GridView1_PageIndexChanging"--%> <asp:GridView 阅读全文
摘要:
效果图: 前端页面 <form id="form1" runat="server"> <div> <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"> <Columns> 阅读全文
摘要:
GridView 分页 a.gridview控件属性 分页 设置AllowPaging 为True ,pagesize 一页展示的条数 前端页面 <%--前端页面--%》 <asp:GridView ID="GridView1" runat="server" AllowPaging="True" O 阅读全文