ÇëÎÊasp:Repeater¿Ø¼þÎÊÌâ - .NET¼¼Êõ / ASP.NET
<asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> µ±Ç°µÚ<%=l_num%>Â¥ </ItemTemplate> </asp:Repeater> È«¾Ö±äÁ¿int l_num,ÒªÔÚÄÄÀ¿ÉÒÔµÝÔö лл
ÎÒÒ»Ö± ÓÃaspnetpager·ÖÒ³¿Ø¼þ 1Â¥µÄ¾ÍÐÐÁË£¬Ã»±ØÒªÔÙ¶¨Òå¸ö±äÁ¿À´ÏÔʾÒýÓà HTML code <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> µ±Ç°µÚ<%# container.ItemIndex %>Â¥ </ItemTemplate> </asp:Repeater> Èç¹û·ÖÒ³ÁË£¬¼ÇµÃ°ÑpageIndex*Pagesize¼ÓÉÏÈ¥ ¶à½áÌù ϸСµÄ¸ü¸Ä£º<%# container.ItemIndex + 1 %> Â¥ ÓÃDataTableÀ´½ÓÊÜ·ÖÒ³ºóµÄÊý¾Ý£¬È»ºó½«ÆäDataTable°ó¶¨µ½RepeaterÉÏÃ棬ȻºóÒª¼Ç¼¥Êý¾Í±äµÃ¸ü¼Ó¼òµ¥Á赀 <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> µ±Ç°µÚ<%# (Convert.ToInt32(Eval("row_number")+PageSize*(CurPage-1)))%>Â¥ </ItemTemplate> </asp:Repeater> ¸ã¸öÎÊÌ⣬µÇ¼N´Î£¬·³£¬£¬£¬ лл¸÷λÒýÓà ÒýÓà 1 Â¥ nosuchtracter µÄ»Ø¸´: HTML code <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> µ±Ç°µÚ<%# container.ItemIndex %>Â¥ </ItemTemplate> </asp:Repeater> Èç¹
Ïà¹ØÎÊ´ð£º
function CheckOpwd(){//ÑéÖ¤Óû§Ãû var pwd=document.all.txtOpwd; var div1=document.getElementById("divPwd"); if (pwd.value=="") { ......
C# code: SqlConnection conn = CsDB.sqlcon(); SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
ÎÒÓÐÁ½¸ödropdownlist¶¼°óºÃÁËÖµ£¬ÏëÑ¡ÖÐÒ»¸ödropdownlistÖеÄÖµ£¬È»ºóÔÚÁíÒ»¸ödropdownlistÖÐÑ¡ÖÐÏàÓ¦µÄÒ»Ïî¡£ ²»ÊÇ´Óа󶨵ڶþ¸ödropdownlist£¬ÊÇÔÚÒѾ°óºÃµÄÖµµ±ÖÐÑ¡ÖÐÒ»¸ö¡£ ÎÒÏëÓÃjsд ÇóÖú Äã¿ÉÒÔ°Ñdrop ......