ASP.NETÒ³ÃæµÄCheckBoxList×é¼þ
CheckBoxÑ¡Ôñ×é¼þÊÇÒ»¸ö³ÌÐòÖж¼¾³£µÄ×é¼þ¡£ÔÚ³ÌÐòÉè¼ÆÖÐʹÓõ½¸Ã×é¼þ£¬Ò»°ã¶¼²»»áֻʹÓõ½Ò»¸ö£¬ÍùÍùÊÇÒÔ¶à¸ö´ËÀà×é¼þµÄÐÎʽ³öÏֵġ£ÔÚASP.NETÒ³ÃæÖÐÈç¹ûҪʹÓõ½¶à¸öCheckBox×é¼þ£¬³ýÁËÌí¼Ó¶à¸öCheckBox×é¼þÔÚÒ³ÃæÖÐÖ®Í⣬»¹ÓÐÒ»ÖֱȽϷ½±ãµÄ·½·¨£¬¾ÍÊÇʹÓÃCheckBoxList ×é¼þ¡£CheckBoxList×é¼þÊÇÓÉÒ»×éµÄCheckBox×é¼þ×é³ÉµÄ£¬ÔÚ´Ë×é¼þÖÐCheckBoxÊÇ×öΪÌõÄ¿µÄÐÎʽ³öÏֵģ¬²¢ÇÒ¶Ôÿ¸öÔÚ CheckBoxList×é¼þÖеÄCheckBox¶¼ÓÐÒ»¸öË÷ÒýºÅ£¬ÕâÑùÔÚ³ÌÐòÖо͸üÈÝÒ×À´´¦ÀíÁË¡£
ÕâʱÄã¿ÉÄÜÒªÎÊ£¬Õâ²»ÊǶà´ËÒ»¾Ùô£¬¼ÈÈ»ÓÐÁËCheckBox×é¼þ£¬»¹ÒªCheckBoxList×é¼þ¸Éʲô£¿ÕâÊÇÒòΪÔÚ³ÌÐòÉè¼ÆµÄ¹ý³ÌÖУ¬´¦ÀíCheckBoxList×é¼þÒªÍùÍùÒª±È´¦ÀíCheckBox×é¼þÏà¶ÔÈÝÒ׵ĶಢÇÒÒ²Ã÷Á˵Ķࡣ¾ÙÀýÈçÏ£º
¼Ù¶¨ÓÐÒ»¸öCheckBoxList×é¼þºÍÓÐÊ®¸öCheckBox×é¼þ£¬²¢ÇÒÕâ¸öCheckBoxList×é¼þÊÇÓÉÕâÊ®¸öCheckBox×é¼þ¹¹³ÉµÄ¡£
Ò».ÈçºÎÔÚ´´½¨Ò»¸öCheckBoxList×é¼þ£º
£¼ asp:CheckBoxList runat = "server" id = C1 £¾
£¼ asp:ListItem Value = 1 £¾µÚÒ»¸ö¼ì²é¿ò£¼ /asp:ListItem £¾
£¼ asp:ListItem Value = 2 £¾µÚ¶þ¸ö¼ì²é¿ò£¼ /asp:ListItem £¾
£¼ asp:ListItem Value = 3 £¾µÚÈý¸ö¼ì²é¿ò£¼ /asp:ListItem £¾
.....
×¢ÊÍ£ºÔÚÕâÀï¿ÉÒÔ¼ÓÈëÈô¸É¸ö¼ì²é¿ò
£¼ /asp:CheckBoxList £¾
ÔÚASP.NETÒ³ÃæÖмÓÈëÉÏÃæµÄÓï¾ä£¬¾Í¿ÉÒÔ²úÉúÒ»¸öÃû³ÆΪ"C1"µÄCheckBoxList×é¼þÁË¡£
¶þ.CheckBoxList×é¼þÖо³£Ê¹Óõ½µÄÊôÐÔ£º
1.TextAlignÊôÐÔ£ºÈ¡ÖµÎª£ºLeft¡¢Right¡£Èç¹ûTextAlignµÄֵΪLeftÔòCheckBoxList×é¼þÖеļì²é¿òµÄÎÄ×ÖÔÚÑ¡¿òµÄ×ó±ß£¬Í¬ÀíÈç¹ûTextAlignµÄֵΪRightÔò¼ì²é¿òµÄÎÄ×ÖÔÚÑ¡¿òµÄÓұߡ£
2.SelectedÊôÐÔ£ºÎª²¼¶ûÐÍ£¬Åж¨×é¼þÖеļì²é¿òÊÇ·ñ±»Ñ¡ÖС£
3.RepeatColumnsÊôÐÔ£ºÔÚCheckBoxList×é¼þÖÐÓÐÈô¸É¼ì²é¿ò£¬´ËÊôÐÔÖ÷ÒªÊÇÉ趨ÕâЩ¼ì²é¿òµ½µ×ÓöàÉÙÐÐÀ´ÏÔʾ¡£
4.RepeatDirectionÊôÐÔ£º´ËÊôÐÔµÄÖµ¿ÉΪ£ºVertical¡¢Horizontal¡£µ±É趨ÁËRepeatColumnsÊôÐÔºó£¬É趨´ËÊôÐÔÊÇÈçºÎÅÅÁÐ×é¼þÖеĸ÷¸ö¼ì²é¿òµÄ¡£¾ßÌåÈçÏ£º
¼Ù¶¨CheckBoxList×é¼þÓÐËĸö¼ì²é¿ò£¬²¢ÇÒRepeatColumnsÊôÐÔֵΪ2¡£
1).Èç¹ûRepeatDirection £½ Vertical£¬ÔòÔÚÒ³ÃæÖмì²é¿òµÄÏÔʾ·½Ê½ÈçÏ£º
¼ì²é¿ò01 ¼ì²é¿ò03
¼ì²é¿ò02 ¼ì²é¿ò04
2).Èç¹ûRepeatDirection £½ Horizontal£¬ÔòÔÚÒ³ÃæÖмì²é¿òµÄÏÔʾ·½Ê½ÈçÏ£º
¼ì²é¿ò01 ¼ì²é¿ò02
¼ì²é¿ò03 ¼ì²é¿ò04
5.CountÊôÐÔ£º·µ»ØCheckBoxList×é¼þÖÐÓжàÉÙ¼ì²é¿ò¡£
È
Ïà¹ØÎĵµ£º
˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆڼ䣬³öÏÖδ´¦ÀíµÄÒì³£¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔÁ˽âÓйظôíÎóÒÔ¼°´úÂëÖе¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£
Òì³£ÏêϸÐÅÏ¢: System.ArgumentException: ²»Ö§³Ö URI ¸ñʽ¡£
Ô´´íÎó:
ÐÐ 30: protected void BTNCLick(object sender, EventArgs e)
ÐÐ 31: {
ÐÐ 32: System.IO. ......
Asp.netÈÕÆÚ×Ö·û´®¸ñʽ»¯ÏÔʾ--DateTime.ToString()Ó÷¨Ïê½â
ÎÒÃǾ³£»áÓöµ½¶Ôʱ¼ä½øÐÐת»»,´ïµ½²»Í¬µÄÏÔʾЧ¹û£¬Ä¬ÈϸñʽΪ:2006-6-6 14:33:34
Èç¹ûÒª»»³É³É200606,06-2006,2006-6-6»ò¸ü¶àµÄ¸ñʽ¸ÃÔõô°ìÄØ£¿
ÕâÀォҪÓõ½:DateTime.ToStringµÄ·½·¨(String, IFormatProvider)
ʾÀý£º
using System;
using Syste ......
±¾ÎÄËù²ÉÓõÄFCKeditor°æ±¾ÊÇFCKeditor 2.6.4ºÍFCKeditor.NET 2.6.3£¬¶¼Êǵ±Ç°FCKeditorµÄ×îа汾http://www.fckeditor.netÉÏ¿ÉÒÔÕÒµ½¡£
¸ãASP.NET¿ª·¢ÓÐÒ»Äêʱ¼äÁË£¬×öÍøվʱ³£³£Óõ½ÔÚÏßHTML±à¼Æ÷£¬Ò»Ö±ÓõÃÊÇFCKeditor¡£FCKeditorÔÚASP.NETÉϵļ¯³ÉºÍÅäÖ㬿ÉÒÔ˵¸ãµÃÒѾºÜÇå³þÁË¡£ÔÚÍøÂçÉϵõ½¹ýºÜ¶àÇ°±²Í¬ÈÊÃǵİï ......
11.ÓÃ.net×öb/s½á¹¹µÄϵͳ£¬ÄúÊÇÓü¸²ã½á¹¹À´¿ª·¢£¬Ã¿Ò»²ãÖ®¼äµÄ¹ØϵÒÔ¼°ÎªÊ²Ã´ÒªÕâÑù·Ö²ã£¿
´ð£ºÒ»°ãΪ3²ã
Êý¾Ý·ÃÎʲ㣬ҵÎñ²ã£¬±íʾ²ã¡£
Êý¾Ý·ÃÎʲã¶ÔÊý¾Ý¿â½øÐÐÔöɾ²é¸Ä¡£
ÒµÎñ²ãÒ»°ã·ÖΪ¶þ²ã£¬Ò ......