Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

´ø±à¼­µÄÏÂÀ­¿ò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


Ïà¹ØÎĵµ£º

asp.netÖÐÎÄÂÒÂë½â¾ö°ì·¨

    À§ÈÅÁË2ÌìµÄasp.netÖÐÎÄÂÒÂëÖÕÓÚ½â¾öÁË¡£Ê×ÏÈ£¬ÎÒÃèÊöһϴó¸ÅµÄÇé¿ö£º
    ÎÒÒѾ­ÔÚÐéÄâÖ÷»úÉÏÔËÐÐÁËÒ»¶Îʱ¼äµÄÍøÕ¾£¨Äܹ»ÏÔʾÖÐÎÄ£¬ÎÞÂÒÂ룬ÎÞÖÐÎıàÂëÅäÖã©£¬ÔÚÒ»´Îµ÷ÊÔ¹ýºó£¬Í»È»±ä³ÉÁËÂÒÂ룬¶øÇÒÎÞÂÛÎÒÔõôÉèÖã¬×ÜÊÇÂÒÂ룬¶øÇÒÿ´Î¶¼ÊDz»Í¬¸ñʽµÄÂÒÂ룬ÓСõµÄ£¬ÓÐÈ«ÊÇ£¿µÄ£¬Ò²ÓÐ ......

MVC֮ģÐͲ㣨¸½ÉÏasp.netµÄmvc½á¹¹£©

¡¡MVCϵͳÖеÄÄ£ÐÍ´Ó¸ÅÄîÉÏ¿ÉÒÔ·ÖΪÁ½Àà¨D¨DϵͳµÄÄÚ²¿×´Ì¬ºÍ¸Ä±äϵͳ״̬µÄ¶¯×÷¡£Ä£ÐÍÊÇÄãËùÓеÄÉÌÒµÂß¼­´úÂëÆ¬¶ÎËùÔÚ¡£±¾ÎÄΪģÐÍÌṩÁËÒµÎñʵÌå¶ÔÏó
ºÍÒµÎñ´¦Àí¶ÔÏó£ºËùÓеÄÒµÎñ´¦Àí¶ÔÏó¶¼ÊÇ´ÓProcessBaseÀàÅÉÉúµÄ×ÓÀà¡£ÒµÎñ´¦Àí¶ÔÏó·â×°Á˾ßÌåµÄ´¦ÀíÂß¼­£¬µ÷ÓÃÒµÎñÂß¼­Ä£ÐÍ£¬²¢ÇÒ°ÑÏìÓ¦Ìá½»µ½
ºÏÊʵÄÊÓͼ×é¼þÒÔ²úÉúÏì ......

ASP.Net 1.1 ÈçºÎ·¢ËÍ´øÓи½¼þµÄÓʼþ

    Private Sub SendEmail()
        Dim email As System.Web.Mail.MailMessage = New Mail.MailMessage
        Dim emailsmtp As System.Web.Mail.SmtpMail
        Dim emailattch As S ......

Asp.net ÖÐGridView¸÷ÖÖÓ÷¨

1.GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò£º
Ч¹ûͼ£º
1.AllowSortingÉèΪTrue£¬aspx´úÂëÖÐÊÇAllowSorting="True"£»
2.ĬÈÏ1Ò³10Ìõ£¬Èç¹ûÒªÐÞ¸ÄÿҳÌõÊý£¬ÐÞ¸ÄPageSize¼´¿É£¬ÔÚaspx´úÂëÖÐÊÇPageSize="12"¡£
3.ĬÈϵÄÊǵ¥ÏòÅÅÐòµÄ£¬ÓÒ»÷GridViewµ¯³ö“ÊôÐÔ”£¬Ñ¡ÔñAllowSortingΪTrue¼´¿É¡£
2.GridViewÑ¡ÖУ¬±à¼­£¬È¡Ïû£¬É¾³ ......

ASP.NETÖÐDataList¿Ø¼þÊôÐÔ

ItemTemplate:ÏîÄ£°æ£¬±ê¼ÇÁËÿÐÐÏÔʾµÄÄÚÈÝ
AlternatingItemTemplate:½»ÌæÏîÄ£°æ£¬¿ÉÉèÖý»ÌæÐÐÏÔʾ²»Í¬µÄ·ç¸ñ£¬²»ÉèÖÃʱ£¬ÓëÏîÄ£°æÏàͬ
SelectedItemTemplate:Ñ¡ÖÐÄ£°æ£¬ÉèÖÃÑ¡ÖкóµÄÌØÊâÑùʽ
EditItemTemplate:±à¼­ÏîÄ£°æ
HeaderTemplateºÍFooterTemplate£ºÒ³Ã¼ºÍÒ³½ÅµÄÄ£°æ
SeparatorTemplate£º·Ö¸ô·ûÄ£°æ£¬Ò»°ãÓà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ