在asp.net中实现Gridview 表头固定
<script language="javascript">
function init()
{
var tbBody = document.getElementById("<%=GridView2.ClientID%>");
if(tbBody!=null)
{
var tbHead = tbBody.cloneNode(true)
for(i = tbHead.rows.length -1;i > 1;i--)
tbHead.deleteRow(i);
divContent.appendChild(tbHead);
}
}
window.onload = init
</script>
<div id="divContent">
</div>
<div id ="divG" style="height: 180px;position: relative; overflow:scroll;">
<asp:GridView ID="GridView1" runat="server" OnRowCreated="GridView1_OnRowCreated" AllowPaging="true" PageSize="15"
AutoGenerateColumns="false" Width="800" ShowHeader ="false" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="XTBH">
<AlternatingRowStyle CssClass="Alternatingback"></AlternatingRowStyle>
<RowStyle CssClass="griditem"></RowStyle>
<HeaderStyle BackColor="#CEDDF0" ForeColor="#000000" Height="26px" />
&nb
相关文档:
//TransmitFile实现下载
protected void Button1_Click1(object sender, EventArgs e)
{
/*
&n ......
在Web程序中,我们知道,服务器端和IE客户端不是常连的,只有访问时才连接,一旦页面加载完后,这个连接就会断开,也就是说,访问页面A后,再访问页面B时,服务器端是不知道你已经访问过页面A了,甚至对于同一个页面,服务器端也不会去记录你的访问,每次都会重新实例话访问的页面。
这就带来一个问题,如果实现我访问了Lo ......
作者: 王景 来源: 博客园 发布时间: 2010-03-08 14:18 阅读: 239 次 原文链接 [收藏]
最近在招聘新的团队成员中,自己想出了一些问题。先列出来,有机会不断更新吧。
第一部分:
互相介绍及了解
1.请介绍一下你 ......
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data.SqlClient; ......