ASP.NET GridViewÖеã»÷ɾ³ýµ¯³öÌáʾ
Ê×ÏÈÌí¼ÓÒ»¸öÄ£°åÁУ¬ÄÚÈÝÈçÏÂ
<asp:TemplateField HeaderText="²Ù×÷">
<ItemTemplate>
<div onclick="return confirm('ÄúÈ·¶¨ÒªÉ¾³ýÂð£¿')">
<asp:LinkButton ID="lbtn" CommandName="del" runat="server" CommandArgument='<%# Bind("id") %>' Text="ɾ³ý" />
</div>
</ItemTemplate>
</asp:TemplateField>
ºǫ́´úÂ룺
Ìí¼ÓGridViewµÄRowCommandʼþ£¬´úÂëÈçÏ£º
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
if(e.CommandName=="del")//»ñÈ¡´ËÃüÁîµÄÃû³Æ£¬Èç¹ûÊÇɾ³ýÔòÖ´ÐÐ
{
int id = Convert.ToInt32(e.CommandArgument.ToString());//»ñÈ¡´ËÃüÁîµÄ²ÎÊýÖµ
//Ö´ÐвÙ×÷
}
}
Ïà¹ØÎĵµ£º
ÔÚASP.NET ÖÐʵÏÖµ¥µãµÇ¼
³ö×Ô£º¡¾ÃÏÏÜ»áÖ®¾«²ÊÊÀ½ç¡¿ ·¢²¼ÈÕÆÚ£º2005Äê1ÔÂ27ÈÕ 8µã48·Ö0Ãë
ÓÉÓÚijЩÔÒò£¬ÔÚÎÒÃǵÄÓ¦ÓÃÖлáÓöµ½Ò»¸öÓû§Ö»ÄÜÔÚÒ»¸öµØ·½µÇ¼µÄÇé¿ö£¬Ò²¾ÍÊÇÎÒÃÇͨ³£Ëù˵µÄµ¥µãµÇ¼¡£ÔÚASP.NETÖÐʵÏÖµ¥µãµÇ¼ÆäʵºÜ¼òµ¥£¬ÏÂÃæ¾Í°ÑÖ÷ÒªµÄ·½·¨ºÍÈ«²¿´úÂë½øÐзÖÎö¡£
ʵÏÖ˼·
ÀûÓÃCacheµÄ¹¦ÄÜ ......
ÔÚÀûÓÿªÔ´MyXlsµ¼³öExcelʱ£¬¶ÔÓÚ°²×°×ÅѸÀ׵Ŀͻ§¶Ë£¬µ¼³öʱ»á¹ØÁªÑ¸À×£¬Èç¹ûÓÃѸÀ×ÏÂÔØ£¬ÏÂÔØµÄÊÇÕâ¸öÒ³Ãæ¼´aspxÎļþ£¬¶ø·ÇÏëÒªµÄµÄ±¨±í
ΪÁ˽â¾öÕâ¸öÎÊÌâ·Ñ¾¡ÐÄ˼£¬bd£¬Google£¬Ã»ÕÒµ½´ð°¸£¬ºóÀ´×Ô¼º¿´¿´Ô´Â룬ϸϸÑо¿ÁËһϽâ¾öÁË
ѸÀ×ÏÂÔØÊ±ÖØ¶¨Î»ÁË×ÊÔ´£¬ËùÒÔÏÂÔØµÃµ½µÄÊÇÍøÒ³µÄ¡£ÕâÑùÎÒÃÇ¿ÉÒÔÿ´Îµã»÷µ¼³öÊ±× ......
ÔÚÈí¼þÒµÀï´Ó³ÌÐòÔ±³öÉíµÄ£¬Ç§Íò²»Òª°ÑÄã×Ô¼ºµÄ±¾Ðжªµô¡£ÎÒ˵µÄ±¾ÐÐÊǼ¼Êõ¡£ËäÈ»ÔÚÖйú£¬ËÀ×êÑм¼ÊõûÓгö·£¬»°ËäÕâô˵£¬µ«¼¼Êõ³öÉíµÄ¹ÜÀíÕߣ¬¾ø¶ÔÅ£ÓÚ´¿´â¸ã¹ÜÀíµÄÖ½ÉÏ̸±ø£¨µ±È»ÅųýÓàÊÀάÕâÑùµÄÈË£¬Å£²æ²æµÄMBA²©Ê¿)¡£²©¿ÍÔ°ÀïÓÐºÜ¶à“³ÌÐòÔ±->¼Ü¹¹Ê¦->¹ÜÀíÕß”µÄ°ñÑù¡£
×î½üºÜ¾ÃûÀ´Ô°×ÓÀïд²©¿ÍÁË ......
ÕâÁ½Õß±¾Éí½²µÄÊDz»Í¬·½ÏòÓë½Ç¶ÈµÄÎÊÌ⣬ÔÚʵ¼ÊÓ¦ÓÃÖÐËûÃǵÄÈ·´æÔÚһЩÏàËÆµÄÌØµã£¬ÔںܶàÊé¼®ÖÐҲûÓÐÉîÈë½²½â£¬ÒÔÖÂÓÚÔì³ÉÀ§»ó£¬ÎªÁ˸üºÃµÄÀí½âËûÃÇ£¬ÄǾÍÀ´ËµËµÇø±ð°É¡£
¡¡¡¡Ê×ÏÈN²ã½á¹¹ÊÇÒ»ÖÖÈí¼þ³éÏóµÄ²ã´Î½á¹¹£¬ÊǶԸ´ÔÓÈí¼þµÄÒ»ÖÖ×ÝÏòÇз֣¬Ã¿Ò»²ã´ÎÖÐÍê³ÉͬһÀàÐ͵IJÙ×÷£¬ÒԱ㽫¸÷ÖÖ´úÂëÒÔÆäÍê³ÉµÄʹÃü×÷ÎªÒ ......