加入到比较篮
类别:
新知实践| 大小:705K | W:28,M:88,T:5109
下载积分:0 分 | 开源度:
(开源比例)
(开源比例)
适读人群:入门者 - 进阶 - 高手
|
获奖:[0]个金币 上传时间:2008-3-27 15:11:28
| 上传者:study_28
一个利用ActiveRecord模式操作GridView进行数据增删改的示例代码,演示了Hashtable的用法。
jobsList.aspx是记录增删改的页面,选择任一选项后可以进行数据删改,也可以进行数据添加
配置说明:
注意:系统使用的是Sql2000自带的pubs数据库,请按照下面步骤配置数据库
一、在PUBS库中新建这三个存储过程
create procedure sp_get_jobs_all
as
select * from jobs
GO
create procedure sp_get_jobs_all
as
select * from jobs
GO
create procedure sp_get_jobs_id
@intID int = null
as
select job_desc ,min_lvl,max_lvl from jobs where job_id=isnull(@intID,job_id)
GO
@intID int = null
as
select job_desc ,min_lvl,max_lvl from jobs where job_id=isnull(@intID,job_id)
GO
CREATE proc sp_get_jobs_count
@strname varchar(100)
as
declare @count int
select @count=count(*) from jobs where job_desc=isnull(@strname,job_desc)
return @count
GO
@strname varchar(100)
as
declare @count int
select @count=count(*) from jobs where job_desc=isnull(@strname,job_desc)
return @count
GO
二、 Jobs表中max_lvl、min_lvl的字段类型改成 INT型,即可
三、Jobs中的[max_lvl] <= 250),([min_lvl] >= 10),添加或者编辑时要注意!
三、Jobs中的[max_lvl] <= 250),([min_lvl] >= 10),添加或者编辑时要注意!
同类型下载排行(Top 8)
2007-5-30
2007-4-21
2007-12-14
2007-5-16
2007-10-19
2007-4-29
2007-3-12
2007-10-18
11-28
11-28
以下源码也许对你有用
07-03-27
07-12-20
08-03-27
08-04-17
08-05-12
08-07-21
非[实名用户]发言需审核,禁止灌水!
该源码共有[1]条问答,本页显示最新[5]条,查看更多请进 >>
| 类别导航
| 下载总排行(DownLoad Top)
| 30日下载排行(The Latest 30 Days)
| 7日下载排行(The Latest 7 Days)




网址:



该[

