»áÔ±£º ÃÜÂ룺 ¡¡Ãâ·Ñ×¢²á | Íü¼ÇÃÜÂë | »áÔ±µÇ¼ ÍøÒ³¹¦ÄÜ£º ¼ÓÈëÊÕ²Ø ÉèΪÊ×Ò³ ÍøÕ¾ËÑË÷  
 °²È«¼¼Êõ¼¼ÊõÎĵµ
  ¡¤ °²È«ÅäÖÆ
  ¡¤ ¹¤¾ß½éÉÜ
  ¡¤ ºÚ¿Í½Ìѧ
  ¡¤ ·À»ðǽ
  ¡¤ Â©¶´·ÖÎö
  ¡¤ ÆƽâרÌâ
  ¡¤ ºÚ¿Í±à³Ì
  ¡¤ ÈëÇÖ¼ì²â
 °²È«¼¼ÊõÂÛ̳
  ¡¤ °²È«ÅäÖÆ
  ¡¤ ¹¤¾ß½éÉÜ
  ¡¤ ·À»ðǽ
  ¡¤ ºÚ¿ÍÈëÇÖ
  ¡¤ Â©¶´¼ì²â
  ¡¤ Æƽⷽ·¨
  ¡¤ É±¶¾×¨Çø
 °²È«¼¼Êõ¹¤¾ßÏÂÔØ
  ¡¤ É¨Ã蹤¾ß
  ¡¤ ¹¥»÷³ÌÐò
  ¡¤ ºóÃÅľÂí
  ¡¤ ¾Ü¾ø·þÎñ
  ¡¤ ¿ÚÁîÆƽâ
  ¡¤ ´úÀí³ÌÐò
  ¡¤ ·À»ðǽ
  ¡¤ ¼ÓÃܽâÃÜ
  ¡¤ ÈëÇÖ¼ì²â
  ¡¤ ¹¥·ÀÑÝʾ
¼¼ÊõÎĵµ > Web¿ª·¢ > ASP.Net
Ç×ÃܽӴ¥asp.net(4)
·¢±íÈÕÆÚ£º2003-06-26 00:00:00×÷Õߣº· ³ö´¦£º  

ÕûÌìµÄÅÝÔÚ¿¼ÑеÄ×ÊÁÏÀïÃ棬ÏÐϾʱ¾ÍºÍÅóÓÑÃÇ´ó̸ÌØ̸NGWS,Ò»ÌìÖÕÓÚ±»lazyÐÖÒ»¹÷×Ó´òÐÑ£¬"¶¼Ê²Ã´Äê´úÁË£¬»¹ÔÚ̸NGWS"£¬»ÅæÖиϿìÖØÐÂÏÂÔØÎÒÐÄÄ¿ÖеÄ"NGWS"£¬×°ÉϺ󣬷¢ÏÖ½ñ·ÇÎô±È£¬Õâ¸öNGWSÒѾ­¸ÄÃû½ÐMicosoft .Net ,ASP+Ò²Ìöø»ÊÖ®µÄ¸ÄÃûΪASP.Net.¶øÇÒÏÖÔÚ²»½öwindow 2000Äܹ»°²×°µ÷ÊÔasp.netÁË£¬¶øÇÒÁ¬×îÀõÄ"ÎÁ¾Æ°É"Ò²¿ÉÒÔÁË£¬ÓÚÊÇ·¢ÏÖ×ÔÒÑÀëʱ´úÔ½À´Ô½Ô¶ÁË.....£¨Ì¨ÏÂÈË£º·¢±íʲô¸Ð̾£¬»¹²»¿ìÈëÕýÌâ)(ͬʱ£¬Ò»²»Ã÷·ÉÐÐÎïͻȻÏò·Éµ¶ÔÒÀ´£¬·Éµ¶Á¢¿Ìµ¹ÔÚѪ²´ÖÐ.....) WEB¿Ø¼þ °´Õռƻ®ÎÒÃÇÕâÒ»½ÚҪ̸Web¿Ø¼þ£¬ÎÒÏëÁË°ëÌìÒ²²»ÖªµÀÈçºÎ¶¨ÒåÕâ¸öweb¿Ø¼þ£¬Ëü±Èhtml¿Ø¼þÄÑÓÚÀí½â£¬±Ï¾¹HTMLÌ«ÏñÔ­À´ÎÒÃÇÊìϤµÄ¶«¶«ÁË¡£¶øweb¿Ø¼þÈ·ÓëÎÒÃÇƽ³£¼ûµ½µÄÓкܴóµÄ³öÈ룬²»ÖªµÀ´ó¼Ò»¹¼Ç²»¼ÇµÃÎÒ˵¹ýµÄÒ»¾ä»°£¬ÄǾÍÊÇASP.netµÄ³ÌÐò¾ÍÏñÊÇдVBVCÖеĴ°¿Ú£¬ÏÈÔÙÕâЩ´°¿ÚÖмÓÈëÎÒÃǵÄÐèÒªµÄ¿Ø¼þ£¬È»ºóÔÙ¶ÔÕâЩ¿Ø¼þ½øÐвÙ×÷¡£Èç¹ûÄãѧ¹ýÒ»µãµãVBVCµÄ±à³Ì£¬ÄÇôÀí½âÕâ¸ö¾Í²»ÄÑÁË£¬ASP.netÖеÄweb¿Ø¼þ¾ÍÏñÊÇVBVCÖеĿؼþÒ»Ñù¡£ÎÒÃÇÏÈÔÚÒ³ÃæÖаںÃÕâЩ¿Ø¼þ£¬È»ºóÔÙͨ¹ýPage_LoadÒÔ¼°ÆäËüһЩ×Ô¶¨ÒåʼþÀ´¶ÔËûÃǽøÐпØÖÆ¡£ÎÒÃÇ»¹ÊÇͨ¹ý¿´Ò»¸öʵÀýÀ´Á˽âһϰɡ£ÎÒÃÇÏȾټòµ¥µÄLabel¿Ø¼þ°É. Ô´´úÂëÈçÏÂ: <% @ Page Language="C#" %> <% @ Import Namespace="System.Data" %> ²âÊÔLabel¿Ø¼þ ²âÊÔLabel¿Ø¼þ:
ÕâÊǺìÉ«´ÖÌåµÄÎÄ×Ö

Õâ¶Î³ÌÐòÖ´ÐкóµÄ½á¹ûÊÇ

  ²âÊÔLabel¿Ø¼þ:
ÕâÊǺìÉ«´ÖÌåµÄÎÄ×Ö
ÕâÊÇÀ¶É«Ð±ÌåµÄÎÄ×Ö
ÕâÊǺÚÌå×Ö£¬²¢ÇÒ´øÏ»®Ïß

¿´¿´Ô´´úÂ룬ÔÙ¿´¿´³ÌÐòÖ´ÐеĽá¹ûÊDz»ÊÇ·¢ÏÖLabel¿Ø¼þºÍVBÖеÄLabel¿Ø¼þºÜÏà½ü£º£© (×¢£ºÄãÔÚÄãµÄ»úÆ÷ÉÏ¿´µ½µÄÖÐÎÄ¿ÉÄÜÊÇÂÒÂ룬ÄÇôÇëÄú´ò¿ªx:\winnt\microsoft\framework\v1.0.224Ŀ¼£¬ÕÒµ½ÆäÖеÄconfig.webÎļþ£¬´ò¿ªËü,ÕÒµ½ÏÂÃæµÄÎÄ×Ö: °ÑÆäÖеÄiso-8859-1¸ÄΪgb2312,OK£¬ÔÙÖ´ÐÐһϳÌÐò£¬ÖÐÎÄÊDz»ÊdzöÀ´ÁË£º£© ÕâÀïÎÒÃÇÓÃÁËÈýÖÖ·½·¨À´²Ù×÷Label¿Ø¼þ£¬µÚÒ»ÖÖÊÇÀàËÆHTMLµÄ±ÕºÏ±êÇ©£¬½«ÒªÐ´µÄ×ÖдÔÚÖ®¼ä£»µÚ¶þÖÖÊÇÓõ½ÁËLabel¿Ø¼þTextÊôÐÔ£»µÚÈýÖÖ£¬ÊÇͨ¹ýÖ´ÐÐPage_Loadʼþ¶ø°ÑÎÄ×Öд½øLabel¿Ø¼þµÄ¡£ÕâÈýÖÖ·½·¨¶¼ºÜÓÐÓ㬿´Äã×ÔÒѵÄϲ»¶ÁË£¬µÚÈýÖÖÊÇ×î³£ÓõÄÀ²£¬ÒÔºóÎÒÃǻᾭ³£Óõ½.Label¿Ø¼þ²»¹âÓÐTextÊôÐÔÀ´¿ØÖÆËüµÄÎÄ×Ö£¬¶øÇÒ»¹ÓÐfont-sizeµÈÊôÐÔÀ´¿ØÖÆ×ÖÌå´óС£¬ÑÕÉ«µÈÊôÐÔ£¬ÕâÀïµÄÀý×ÓÎÒ¶¼Óõ½ÁË£¬´ó¼ÒºÃºÃ¿´¿´£¬ÏàÐÅûÓÐʲôÎÊÌâ ÎÒÃǼû¹ýÁËLabel¿Ø¼þµÄ²Ù×÷£¬ÄÇôÎÒÃǶÔweb¿Ø¼þÓÐÁËÒ»¸ö¸ÐÐÔµÄÈÏʶ£¬ÔÚASP.netÖУ¬Ò»¹²ÓÐ28¸öWEB¿Ø¼þ£¬ËüÃÇÊÇ: AdRotator Button Calendar CheckBox CheckBoxList CompareValidator CustomValidator DataGrid DataList DropDownList HyperLink Image ImageButton Label LinkButton ListBox Panel RadioButton RadioButtonList RangeValidator RegularExpressionValidator Repeater RequiredFieldValidator Table TableCell TableRow TextBox ValidationSummary ´ó¼Ò¿ÉÒÔµ½ÎÒÉÏÒ»½Ú½²µÄÄǸöÕ¾µãÈ¥¾ßÌå¿´Ò»ÏÂËûÃǸ÷×ÔµÄÓ÷¨£¬ÕâÀïÎÒ±¾À´ÏëÖ÷Òª½²Ò»ÏÂDataGrid,DataLit,ListBoxµ«ÊÇËûÃÇÆäÖж¼ÐèÒªÓõ½Binding֪ʶ(Õâ¸öÎÒÃÇÔÚÏÂÒ»½Ú½²)£¬ËùÒÔÎÒÃÇÖ÷ÒªÀ´¿´¿´DropDownListµÄÓ÷¨£¨ÒòΪÎÒÃÇÉÏÒ»½ÚÊÇÓõÄselectÀ´½²½âHTML¿Ø¼þµÄ£© ÏÈ¿´Ò»¸öÀý×Ó: <% @ Page Language="C#" %> <% @ Import Namespace="System.Data" %>
ÇëÑ¡ÔñASPCN.Com¹¤×÷ÊÒ³ÌÔ±:
·Éµ¶ ´ó·ç Zsir ²¼¶¡ ÑǺÀ

ËüÖ´ÐÐÏÔʾΪ:

 

ÇëÑ¡ÔñASPCN.Com¹¤×÷ÊÒ³ÌÔ±:


Èç¹ûÎÒÑ¡ÖÐÁËÆäÖеķɵ¶£¬È»ºóÔÙ°´ÏÂ"Ìá½»"¼ü,ÄÇôÏÔʾ¾ÍÊÇ:

ÇëÑ¡ÔñASPCN.Com¹¤×÷ÊÒ³ÌÔ±:


ÄúÑ¡ÔñµÄÊDZ¾¹¤×÷Êҵķɵ¶³ÉÔ±


DropDownList¿Ø¼þ£¬ÆäʵºÍselect²î²»¶à£¬¹¦ÄÜÒ²¾Í¶àÄÇôһµãµã£¬µ«ÊÇÕâ¸ö¶àÒ»µãµãµÄ¹¦ÄܾÍÊǺÜÓÐÓõģ¬Õâ¾ÍÊÇÎÒÃÇÏÂÒ»½ÚҪѧϰµÄBind,ºÇºÇ£¬ÊDz»ÊÇÏëѧÁË£º£©²»¼±£¬ÎÒÃÇÏÈ·ÖÎöÒ»ÏÂÕâÀïµÄ³ÌÐò¡£

ÎÒÃÇÓÃDropDownList¿Ø¼þ½¨Á¢ÆðÒ»¸öListÁÐ±í£¬È»ºóÎÒÃÇÑ¡ÔñÆäÖеÄÒ»¸öÑ¡Ï×îºó°´Ìá½»¼üÌá½»¡£ÕâÀïÎÒÃÇ¿ÉÒÔ¿´µ½´¦Àí³ÌÐòµÄÊÇsub_clickÕâ¸öʼþ£¬ÕâÀïÓÉÃûΪsubµÄbutton¿Ø¼þ¼¤·¢£¬ËùÓõÄʼþÊÇOnclick,ÕâÀïºÍHTML¿Ø¼þËùʹÓõÄOnServerClickʼþÊDz»Í¬µÄ£¬´ó¼ÒÒª·ÖÇå³þ¡£ÆäËüµÄºÃÏñûÓÐʲô¿ÉÒÔ˵ÁË¡£ºÇºÇ

ÎÒÃÇÏÂÒ»½ÚÒª½²bind£¬Õâ¸öÊǺÜÖØÒªµÄ¡£

¡¾·µ»Ø¶¥²¿¡¿ ¡¾´òÓ¡±¾Ò³¡¿ ¡¾¹Ø±Õ´°¿Ú¡¿

¹ØÓÚÎÒÃÇ / ¸øÎÒÁôÑÔ / °æȨ¾Ù±¨ / Òâ¼û½¨Òé / ÍøÕ¾±à³ÌQQȺ   
Copyright ©2003- 2024 Lihuasoft.net webmaster(at)lihuasoft.net ¼ÓÔØʱ¼ä 0.00184