随笔 - 77  文章 - 479 评论 - 78 trackbacks - 2
<2012年2月>
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

搜索

 
 

最新随笔

我的标签

随笔分类

随笔档案(77)

文章分类(483)

最新评论

阅读排行榜

评论排行榜

推荐排行榜

常用代码
Repeater 实现批量删除 全选
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Repeart._Default" %>





Repeater绑定事件
");
Response.Write("要批量删除的记录ID号:"+chk.Text+"
");
}
}
}
阅读全文
posted @ 2008-06-16 17:51 小角色 阅读(1028) | 评论 (0)  编辑
GridView 使用 存储过程 实现 编辑 更新 批量 全选 删除
摘要: SQL代码
select * from BBs

Create Procedure SELECT_BBS
as
select * from BBS
go

Create Procedure DELETE_BBS
(
@id bigint
)
as
delete from BBS where id=@id

while((select count(*) from BBS)<50)
begin
declare @i bigint
set @i=(select count(*) from BBS)
insert into BBS values(@i,@i+1)
end

Create Procedure UPDATE_BBS
(
@id bigint,
@message varchar(5000),
@userName varch阅读全文
posted @ 2008-06-02 16:30 小角色 阅读(7) | 评论 (0)  编辑