ÔÚ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
Ïà¹ØÎĵµ£º
1. ͼƬÎÊÌâ
·Ç³£ºÃ½â¾ö
<img runat="server" src="~/images/ad468x60.gif" alt="" />
¼ÓÉÏrunat="server" £¬Â·¾¶Ê¹Óþø¶Ô·¾¶~/»ù±¾ÉϾÍOKÁË¡£
2. CSSÎļþÒýÓÃ
<link rel="stylesheet" type="text/css" href="style.css" />
ÕâÀïÉñÆæµÄ¾ÍÊÇlinkµÄÎļþµÄhrefÊÇËæ×ű»·ÃÎÊÎļþµÄĿ¼½á¹¹×Ô¶¯µ÷Õû£¬Ëµ°×Á˾ ......
//TransmitFileʵÏÖÏÂÔØ
protected void Button1_Click1(object sender, EventArgs e)
{
/*
&n ......
ASP.NET
MVCÌṩÁ˺ܶàHellperµÄ·½·¨£¬Hellper¾ÍÊÇһЩÉú³ÉHTML´úÂëµÄ·½·¨£¬·½±ãÎÒÃÇÊéдHTML´úÂë(ÓÐÒ»²¿·ÖµÄÅóÓѸüϲ»¶Ö±½ÓдHTML
´úÂë)¡£ÎÒÃÇÒ²¿ÉÒÔÀûÓÃ.NET 3.5µÄÀ©Õ¹·½·¨À´ÊéдÎÒÃÇ×Ô¼ºµÄHellper¡£
ÀýÈ磺
<%
=
Html.ActionLink(
"
Ê×Ò³
"
,
"
index
"
,
"
Home
"
......
×÷Õß: Íõ¾° À´Ô´: ²©¿ÍÔ° ·¢²¼Ê±¼ä: 2010-03-08 14:18 ÔĶÁ: 239 ´Î ÔÎÄÁ´½Ó [ÊÕ²Ø]
¡¡¡¡×î½üÔÚÕÐÆ¸ÐµÄÍŶӳÉÔ±ÖУ¬×Ô¼ºÏë³öÁËһЩÎÊÌâ¡£ÏÈÁгöÀ´£¬Óлú»á²»¶Ï¸üаɡ£
¡¡¡¡µÚÒ»²¿·Ö£º
¡¡¡¡»¥Ïà½éÉܼ°Á˽â
¡¡¡¡1.Çë½éÉÜÒ»ÏÂÄã ......