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

ASP.NETÖÐCheckBoxµÄʹÓÃ

 Ò»¡¢Ôõô½«CheckBoxµÄÖµ´æ´¢ÔÚÊý¾Ý¿âÖУ¬¼´Ò»¸öCheckBox±»Ñ¡¶¨ºó£¬ÈçºÎÔÚÊý¾Ý¿âÖбíʾÕâÖÖÑ¡¶¨£¿
Ê×ÏÈÔÚÊý¾Ý¿âÖж¨Ò弸ÁÐbitÀàÐ͵ÄÊý¾ÝÁУ¬ÓÃÀ´±íʾij¸öCheckBoxÊÇ·ñ±»Ñ¡¶¨£¬Êý¾Ý¿âÖеÄֵΪtrue»òfalse.
ǰ̨´úÂ룺
    ÊÇ·ñÍƼö£º<asp:CheckBox ID="IsRecommend" runat="server" />
    <br />
    ÊÇ·ñÈÈÂô£º<asp:CheckBox ID="IsHot" runat="server" />
    <br />
    ÊÇ·ñ²ÎÓë´òÕÛ£º<asp:CheckBox ID="IsSale" runat="server" />
    <br />
ºǫ́´úÂ룺
        //ÊÇ·ñÍƼöµÄÅжÏ
        bool isrecommend;
        if (IsRecommend.Checked)
        {
            isrecommend = true;
        }
        else
        {
            isrecommend = false;
        }
        //ÊÇ·ñ´òÕÛµÄÅжÏ
        bool issale;
        if (IsSale.Checked)
        {
            issale = true;
        }
        else
        {
            issale = false;
        }
        //ÊÇ·ñÈÈÂôµÄÅжÏ
        bool ishot;
        if (IsHot.Checked)
        {
   &nbs


Ïà¹ØÎĵµ£º

Asp.netÖзÀÖ¹Óû§¶à´ÎµÇ¼µÄ·½·¨

 ÔÚweb¿ª·¢Ê±£¬ÓеÄϵͳҪÇóͬһ¸öÓû§ÔÚͬһʱ¼äÖ»ÄܵǼһ´Î£¬Ò²¾ÍÊÇÈç¹ûÒ»¸öÓû§ÒѾ­µÇ¼ÁË£¬ÔÚÍ˳ö֮ǰÈç¹ûÔٴεǼµÄ»°ÐèÒª±¨´í¡£
¡¡¡¡³£¼ûµÄ´¦Àí·½·¨ÊÇ£¬ÔÚÓû§µÇ¼ʱ£¬ÅжϴËÓû§ÊÇ·ñÒѾ­ÔÚApplicationÖдæÔÚ£¬Èç¹û´æÔھͱ¨´í£¬²»´æÔڵĻ°¾Í¼Óµ½ApplicationÖÐ(ApplicationÊÇËùÓÐSession¹²Óеģ¬Õû¸öwebÓ¦ÓÃ³Ì ......

ASP.NET

ËÄ¡¢ÈçºÎ£ºÏìÓ¦Áбí Web ·þÎñÆ÷¿Ø¼þÖеĸü¸Ä
      ±¾Ö÷ÌâÖеÄÐÅÏ¢ÊÊÓÃÓÚÈçÏÂÁбí Web ·þÎñÆ÷¿Ø¼þ£ºListBox¡¢DropDownList¡¢CheckBoxList ºÍ RadioButtonList¡£
µ±Óû§ÔÚÁбí Web ·þÎñÆ÷¿Ø¼þÖнøÐÐÑ¡Ôñʱ£¬¿Ø¼þ½«Òý·¢Ò»¸öʼþ£¬Äú¿ÉÒÔÖ±½Ó¶Ô¸Ãʼþ×ö³öÏìÓ¦¡£Í¨³£¸ù±¾²»ÐèÒªÖ±½Ó¶ÔÑ¡Ôñʼþ½øÐÐÏì ......

ASP.NETÖг£ÓõÄ26¸öÓÅ»¯ÐÔÄÜ·½·¨(11


 
11. ½«µ÷ÓÃÃܼ¯Ð굀 COM ×é¼þǨÒƵ½ÍйܴúÂë ¡¡¡¡
.NET Framework ÌṩÁËÒ»¸ö¼òµ¥µÄ·½·¨Ó봫ͳµÄ COM ×é¼þ½øÐн»»¥¡£ÆäÓŵãÊÇ¿ÉÒÔÔÚ±£ÁôÏÖÓÐͶ×ʵÄͬʱÀûÓÃеÄƽ̨¡£µ«ÊÇÔÚijЩÇé¿öÏ£¬±£Áô¾É×é¼þµÄÐÔÄÜ¿ªÏúʹµÃ½«×é¼þǨÒƵ½ÍйܴúÂëÊÇÖµµÃµÄ¡£Ã¿Ò»Çé¿ö¶¼ÊDz»Ò»ÑùµÄ£¬¾ö¶¨ÊÇ·ñÐèҪǨÒÆ×é¼þµÄ×îºÃ·½·¨ÊÇ¶Ô Web Õ ......

ASP.NETÖг£ÓõÄ26¸öÓÅ»¯ÐÔÄÜ·½·¨(20


21. Ö»ÔÚ±ØҪʱ±£´æ·þÎñÆ÷¿Ø¼þÊÓͼ״̬ ¡¡¡¡
×Ô¶¯ÊÓͼ״̬¹ÜÀíÊÇ·þÎñÆ÷¿Ø¼þµÄ¹¦ÄÜ£¬¸Ã¹¦ÄÜʹ·þÎñÆ÷¿Ø¼þ¿ÉÒÔÔÚÍù·µ¹ý³ÌÉÏÖØÐÂÌî³äËüÃǵÄÊôÐÔÖµ(Äú²»ÐèÒª±àдÈκδúÂë)¡£µ«ÊÇ£¬ÒòΪ·þÎñÆ÷¿Ø¼þµÄÊÓͼ״̬ÔÚÒþ²ØµÄ´°Ìå×Ö¶ÎÖÐÍù·µÓÚ·þÎñÆ÷£¬ËùÒԸù¦ÄÜȷʵ»á¶ÔÐÔÄܲúÉúÓ°Ïì¡£ÄúÓ¦¸ÃÖªµÀÔÚÄÄЩÇé¿öÏÂÊÓͼ״̬»áÓÐËù°ïÖú£¬ÔÚÄÄÐ ......

ASP.Net 2.0 ´°ÌåÉí·ÝÑéÖ¤»úÖÆ

ASP.Net 2.0 ´°ÌåÉí·ÝÑéÖ¤»úÖÆ-ת+×Ô¼º´úÂë×¢ÊÍʾÀýÓë¸üÏêϸµÄ˵Ã÷
ASP.Net 2.0 ´°ÌåÉí·ÝÑéÖ¤»úÖÆ-ת+×Ô¼º´úÂë×¢ÊÍʾÀýÓë¸üÏêϸµÄ˵Ã÷
µ±Ä³Ò»¸öÓû§Ê¹ÓÃÓû§Ãû³É¹¦µÇ½Íøվʱ£¬ FormsAuthentication£¨´°ÌåÉí·ÝÑéÖ¤»úÖÆ£¬ÏÂÃæͳһʹÓÃÓ¢ÎÄÊõÓ ½«»á´´½¨Ò»¸öauthentication ticket (Éí·ÝÑé֤Ʊ),ͨ¹ýÕâ¸öticket¾Í¿ÉÒÔÔÚÍø ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ