ÔÚ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 ......
ASP.NET Excelµ¼³ö(¶¯Ì¬Éú³É)½â¾ö·½°¸
£¨Ò»£©¡¢·þÎñÆ÷¶ËµÄexcel×é¼þÀ´Éú³ÉÄ¿±êExcel
¼´ÔÚºǫ́µ÷ÓÃexcel×é¼þ£¬À´¶Áȡģ°å£¬Ìîдģ°åµÄ¡£¾ÍÊǺǫ́Æô¶¯ExcelÀ´´¦ÀíµÄ£¬ÔÚ½ø³Ì¹ÜÀíÆ÷Àï¿ÉÒԲ鿴µ½ËüµÄ½ø³Ì¡£
Óŵ㣺Excel´¦Àí¹¦Äܷḻ£¬¶àÑù£¬¿ÉÒÔÍê³ÉÒ»ÇеÄExcelÎļþ´¦Àí¡£
ȱµã£º·þÎñÆ÷¶ËҪװExcel ......
¶ÁÈ¡SAPÊý¾Ý, ´ÓÁ½·½ÃæÀ´×ö
1) ×öÒ»¸öC# app ÔÚ·þÎñÆ÷ÉÏ"ÈÎÎñ¼Æ»®"ÿÌì¶ÁÈ¡. ±ØÐëÔÚ·þÎñÆ÷ÉÏÖ´ÐÐ, ·ñÔò¿ÉÄÜ´ÓSAP¶ÁµÄºº×ÖÊÇÂÒÂë.
2) ¶ÔÓÚҪʵʱ¶ÁÈ¡µÄ, ×ö³ÉÒ³Ãæ»òweb Service·ÅOAÉÏ.
ÏÂÃæÊÇÒ³ÃæÊµÏֵIJ¿·Ö´úÂë.
using System.Data.SqlClient; //Á¬½ÓSQL SERVER
using System.Data.OleDb; &n ......
ASP.NET»ñÈ¡Òþ²ØÎļþµÄÀàÃû£¨Ô£© http://www.cnblogs.com/lin614/archive/2008/01/25/1052676.html Õâ¸öÎÊÌâÔÚ¿ª·¢ÖÐÓöµ½¡£
this.GetType(). µÃµ½µÄ: ASP.****_ASPX
ÄÇÎÒ¸ÃÈçºÎ²ÅÄܵõ½ ÀàÃû:****¡£Í¨¹ý×Ö·û´®´¦ÀíµÃµ½µÄÀàÃû×ܸоõ²»ÊÇÕý¹æÍ¾¾¶¡£
¾¹ý²éѯ×ÊÁÏ£ ......