ASP.NET´óÊý¾ÝÁ¿²éѯ·ÖÒ³Àý×Ó
ǰ̨ Èç¹ûÄãÓõÄÊÇ gridview ¾Í°ÑRepeaterÌæ»»³Égridview ¡£Ò»ÑùµÄ¡£¡£
<form id="frm01" action="" method="post" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div id="center-top" > <div class="fon">Öмä1</div> </div>
<div id="center-content_Default2" >
<asp:Repeater runat="server" Id="mainlist" >
<ItemTemplate>
<div id="pic-out" >
<li class="pic-a" > Eval("product_type").ToString() </li>
<li class="pic-b" >Eval("product_desc").ToString() </li>
<li>¼Û¸ñ<%#
Ïà¹ØÎĵµ£º
1
<asp:UpdatePanelID="UpdatePanel1"
UpdateMode="Conditional"
runat="server">
<ContentTemplate>
<asp:Button ID="Button1"
......
ºÚɫ΢Цѧasp.net£¨Ðò£©
±¾ÈËÊǸö²ËÄñ£¬´ÓʵÄÖ°ÒµÔÚÍøÕ¾ºǫ́Ìí¼ÓÎÄÕµģ¬ÎÒ¶Á³ÉÈË´óѧÔÚÄÇÀïÖ»ÖªµÀÓÐCÓïÑÔÕâÖÖ¶«Î÷£¬¶ÔÓÚÀïÃæµÄÄÚÈÝÒ»¸Å²»Öª£¬ºóÀ´²Î¼Ó×Ô¿¼²ÅÖªµÀÁËselectÓïÑÔ¡£Í¨¹ýÇ×ÆÝ°ïÎÒ½éÉܵ½×öÍøÕ¾µÄ²¿ÃÅ£¬ÓÉÓÚ¹¤×÷ÐèÒª²Å½Ó´¥ÁËHTMLÓïÑÔ£¬ºóÀ´ÂýÂýÏÐÏÂÀ´ÁË£¬¿´µ½Í¬ÊÂASP×ö ......
ÏÖÔÚ´Ó¶ÔASP.NETÒ³ÃæµÄÖ´ÐÐ˳Ðò¿ªÊ¼£¬Ìå»áÒ»ÏÂB/S½á¹¹µÄ³ÌÐòµÄÌص㣬ÏÂͼÊÇASP.NETÒ³ÃæµÄÖ´ÐÐ˳Ðò˵Ã÷£º
¡¡¡¡Page_Init£¨Ò³Ãæ³õʼ»¯Òý·¢µÄʼþ£©——>Page_Load£¨¼ÓÔØÒ³ÃæʱÒý·¢µÄʼþ£©——>Control Event£¨·þÎñÆ÷¿Ø¼þÒý·¢µÄʼþ£©——>Page_UnLoad£¨Ò³Ãæ´ÓÄÚ´æÖÐÐ¶Ô ......
ͨ¹ýÔÚÒ³ÉÏ°üº¬ LoginView ¿Ø¼þ¿ÉÒÔÏòÄäÃûÓû§ºÍµÇ¼£¨¾¹ýÉí·ÝÑéÖ¤µÄ£©Óû§ÏÔʾ²»Í¬µÄÐÅÏ¢¡£LoginView ¿Ø¼þ°üº¬Á½¸öÄ£°å£ºÒ»¸öÓÃÓÚÏòÄäÃûÓû§ÏÔʾÐÅÏ¢£¬ÁíÒ»¸öÓÃÓÚÏòµÇ¼Óû§ÏÔʾÐÅÏ¢¡££¨»¹¿ÉÒÔʹÓà RoleGroups ÊôÐÔ°üº¬»ùÓÚ½ÇÉ«Ãû³ÆµÄÄ£°å¡££©¸Ã¿Ø¼þ×Ô¶¯È·¶¨Óû§ÊÇ·ñ¾¹ýÉí·ÝÑéÖ¤²¢³ÊÏÖ ......
ÔÚ×î½üµÄÏîÄ¿ÖУ¬Óöµ½Ò»¸öÎÊÌ⣬ҪʵÏÖÕâÑùµÄЧ¹û£º
µãpic_small.AspxÒ³ÃæµÄËõÂÔͼºóµ¯³öpic_all.aspxÒ³Ã棬pic_all.aspxÒ³ÃæµÄ´óСҪ¸ù¾ÝͼƬ´óС×Ô¶¯µ÷Õû£¬¶øÇÒÒªÓÐͼƬµÄ˵Ã÷ÐÅÏ¢£¬»¹¿ÉÒÔµãÉÏÒ»·ùºÍÏÂÒ»·ùµÈ½øÐзҳ¡£
ʵÏÖ¹ý³ÌÈçÏ£º
pic_small.AspxÒ³ÃæËõÂÔͼ´¦µÄ´úÂëΪ£º
£¼IMG id="imgPic" style="CURSOR: h ......