´ø±à¼µÄÏÂÀ¿òasp.net
ÐÞ¸ÄÁË´Ó£ºhttp://www.cnblogs.com/ejiyuan/archive/2007/11/09/954325.htmlµÄÒ»ÅúÎÄÕ Éú³ÉÁË¿ÉÒÔÔÚGridviewÀïÃæµ÷ÓõÄCombBox¿Ø¼þ£¬ÊÇ»ùÓÚAjaxµÄ¡£
¶ÀÁ¢Ê¹ÓÃʹÓ÷½Ê½£¨£©£º <Com:ComboBox ID="ComboBox2" runat="server" Independent="true" Width="80px" EnableViewState="true">
</Com:ComboBox>
ÔÚGridviewʹÓ÷½Ê½£¨£©£º <Com:ComboBox ID="ComboBox2" runat="server" Independent="false" Width="80px" EnableViewState="true" DataArg='<%Eval("±àºÅ") %>'>
</Com:ComboBox>
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Collections;
using System.Web.UI.Design;
[assembly: TagPrefix("Com", "Com")]
namespace Com
{
/// <summary>
/// Represents a control that allows the user to select a single item from a drop-down list,
/// or type in a new value that is not in the list.
/// </summary>
/// <remarks>
/// Since the ComboBox control inherits from <see cref="System.Web.UI.WebControls.ListBox"/>,
/// you can use it in exactly the same manner (including DataBinding).
/// For older browsers that do not support the functionality required to render this control,
/// a normal dropdown box will be emitted instead.
/// </remarks>
[ToolboxData("<{0}:ComboBox runat=\"server\"></{0}:ComboBox>")]
[ValidationPropertyAttribute("SelectedValue")]
[Designer(typeof(Com.ComboBoxDesigner))]
&nbs
Ïà¹ØÎĵµ£º
À§ÈÅÁË2ÌìµÄasp.netÖÐÎÄÂÒÂëÖÕÓÚ½â¾öÁË¡£Ê×ÏÈ£¬ÎÒÃèÊöһϴó¸ÅµÄÇé¿ö£º
ÎÒÒѾÔÚÐéÄâÖ÷»úÉÏÔËÐÐÁËÒ»¶Îʱ¼äµÄÍøÕ¾£¨Äܹ»ÏÔʾÖÐÎÄ£¬ÎÞÂÒÂ룬ÎÞÖÐÎıàÂëÅäÖã©£¬ÔÚÒ»´Îµ÷ÊÔ¹ýºó£¬Í»È»±ä³ÉÁËÂÒÂ룬¶øÇÒÎÞÂÛÎÒÔõôÉèÖã¬×ÜÊÇÂÒÂ룬¶øÇÒÿ´Î¶¼ÊDz»Í¬¸ñʽµÄÂÒÂ룬ÓСõµÄ£¬ÓÐÈ«ÊÇ£¿µÄ£¬Ò²ÓÐ ......
¡¡MVCϵͳÖеÄÄ£ÐÍ´Ó¸ÅÄîÉÏ¿ÉÒÔ·ÖΪÁ½Àà¨D¨DϵͳµÄÄÚ²¿×´Ì¬ºÍ¸Ä±äϵͳ״̬µÄ¶¯×÷¡£Ä£ÐÍÊÇÄãËùÓеÄÉÌÒµÂß¼´úÂëÆ¬¶ÎËùÔÚ¡£±¾ÎÄΪģÐÍÌṩÁËÒµÎñʵÌå¶ÔÏó
ºÍÒµÎñ´¦Àí¶ÔÏó£ºËùÓеÄÒµÎñ´¦Àí¶ÔÏó¶¼ÊÇ´ÓProcessBaseÀàÅÉÉúµÄ×ÓÀà¡£ÒµÎñ´¦Àí¶ÔÏó·â×°Á˾ßÌåµÄ´¦ÀíÂß¼£¬µ÷ÓÃÒµÎñÂ߼ģÐÍ£¬²¢ÇÒ°ÑÏìÓ¦Ìá½»µ½
ºÏÊʵÄÊÓͼ×é¼þÒÔ²úÉúÏì ......
Private Sub SendEmail()
Dim email As System.Web.Mail.MailMessage = New Mail.MailMessage
Dim emailsmtp As System.Web.Mail.SmtpMail
Dim emailattch As S ......
1.GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò£º
Ч¹ûͼ£º
1.AllowSortingÉèΪTrue£¬aspx´úÂëÖÐÊÇAllowSorting="True"£»
2.ĬÈÏ1Ò³10Ìõ£¬Èç¹ûÒªÐÞ¸ÄÿҳÌõÊý£¬ÐÞ¸ÄPageSize¼´¿É£¬ÔÚaspx´úÂëÖÐÊÇPageSize="12"¡£
3.ĬÈϵÄÊǵ¥ÏòÅÅÐòµÄ£¬ÓÒ»÷GridViewµ¯³ö“ÊôÐÔ”£¬Ñ¡ÔñAllowSortingΪTrue¼´¿É¡£
2.GridViewÑ¡ÖУ¬±à¼£¬È¡Ïû£¬É¾³ ......
ItemTemplate:ÏîÄ£°æ£¬±ê¼ÇÁËÿÐÐÏÔʾµÄÄÚÈÝ
AlternatingItemTemplate:½»ÌæÏîÄ£°æ£¬¿ÉÉèÖý»ÌæÐÐÏÔʾ²»Í¬µÄ·ç¸ñ£¬²»ÉèÖÃʱ£¬ÓëÏîÄ£°æÏàͬ
SelectedItemTemplate:Ñ¡ÖÐÄ£°æ£¬ÉèÖÃÑ¡ÖкóµÄÌØÊâÑùʽ
EditItemTemplate:±à¼ÏîÄ£°æ
HeaderTemplateºÍFooterTemplate£ºÒ³Ã¼ºÍÒ³½ÅµÄÄ£°æ
SeparatorTemplate£º·Ö¸ô·ûÄ£°æ£¬Ò»°ãÓà ......