类别:
新知实践| 大小:705K | W:21,M:123,T:3940
下载积分: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-3-12
2007-10-19
2007-4-29
2007-3-24
11-28
11-28
以下源码也许对你有用
07-03-27
07-12-20
08-03-27
08-04-17
08-05-12
08-07-21




网址:



该[
