Crystalball

导航

2012年11月15日 #

(转)GridView或DataGrid 固定表头,滚动数据的例子.

摘要: 1.主要利用table style的layout=fixed属性按照当前表头再copy一个table,显示在当前datagrid或gridview的前面.2.注意:调用的时候,datagrid 或gridview要有style="table-layout:fixed" 和 width=?? 属性. 另外还有个自定义属性 viewheight 是可选,表示滚动内容区域的高度 脚本中更改一下DataGrid或GridView的ID即可. 该示例在IE7 和 FireFox下测试通过.以下是示例:<asp:GridView style="table-layout: 阅读全文

posted @ 2012-11-15 15:32 Crystalball 阅读(531) 评论(0) 推荐(0) 编辑

Freezing GridView Column Headers using Only CSS

摘要: Recently I wrote anarticledescribing how you could use CSS plusaGrdiView Control Adaptorto add the 'frozen column headers' feature to your GridView.Live Demo (IE only)|DownloadI received the following comment froma kind reader named Mitch:I have also noticed that applying a skin to the gridv 阅读全文

posted @ 2012-11-15 15:28 Crystalball 阅读(416) 评论(0) 推荐(0) 编辑

如何弹出确认删除对话框(C#编程)?

摘要: 在Asp.Net的C#编程中,在页面上如何弹出确认删除对话框? 对于页面完成一个操作后,弹出一个对话框提示是否“操作成功”。举例如下:Response.Write("<script>alert('删除成功!')</script>"); 在页面上有一个删除按钮,当用户点击的时候会弹出一个确认是否删除的对话框方法一:page_load里Button1.Attributes.Add("onclick", "return confirm('您真的要删除吗?');");或 Button1. 阅读全文

posted @ 2012-11-15 13:58 Crystalball 阅读(13625) 评论(0) 推荐(0) 编辑