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

ASP.NET×Ô¶¨Òå¿Ø¼þÊôÐÔµÄÌØÐÔ´óÈ«

×Ô¶¨Òå¿Ø¼þÊôÐÔµÄÌØÐÔ£º
Bindable
Ö¸¶¨屬ÐÔÊÇ·ñÖ§Ô®Data Binding¡£
Õâ¸öÌØÐÔ±íʾÊôÐÔÊÇ·ñ¿ÉÒÔ°ó¶¨Ò»¸öÓÐЧÊý¾ÝÔ´¡£Í¨³£Ê¹Óò¼¶ûÖµ½øÐÐÉèÖá£ÀýÈ磺Bindable(true)¡£Èç¹ûʹÓÃÖµtrue±ê¼ÇÊôÐÔ£¬±íʾ¸ÃÊôÐÔ¿ÉÒÔ°ó¶¨Ò»¸öÓÐЧÊý¾ÝÔ´£¬ÇÒÓ¦Òý·¢¸ÃÊôÐÔµÄÊôÐÔ¸ü¸Ä֪ͨ¡£
Browsable
¿ØÖÆ屬ÐÔ»òʼþÊÇ·ñ顯ʾì¶屬ÐÔ±í¡£
Ö¸¶¨ÊôÐÔÊÇ·ñÓ¦¸ÃÔÚÊôÐÔä¯ÀÀÆ÷ÖÐÏÔʾ£¬Ê¹Óò¼¶ûÖµÉèÖá£Í¨³£Çé¿öÏ£¬¹¦ÓÃÊôÐÔºÍÄÇЩϣÍûÔÚÊôÐÔä¯ÀÀÆ÷ÖÐÏÔʾµÄÊôÐÔ±»ÉèÖÃΪ Browsable(true)£¬Ö»¶ÁÊôÐÔºÍÄÇЩ²»Ï£ÍûÔÚÊôÐÔä¯ÀÀÆ÷Öмûµ½µÄÊôÐÔ±»ÉèÖÃΪ Browsable(false)¡£
Category
對ÓÚ屬ÐÔ»òÊÇʼþµÄ·Ö類£¬當屬ÐÔ±í採·Ö類ģʽ顯ʾ時£¬會ÒÔ´ËAttribute×÷為·Ö類µÄÒÀ據¡£
Ö¸¶¨ÊôÐÔÔÚÊôÐÔä¯ÀÀÆ÷ÖнøÐзÖ×éÏÔʾµÄÀà±ð¡£¸ÃÉè¼ÆʱÌØÐÔ°ïÖú¿ÉÊÓ»¯±à¼­Æ÷½«ÊôÐÔ½øÐÐÂß¼­·Ö×顣ͨ³£·ÖΪ£ºÍâ¹Û£¨Appearance£©¡¢ÐÐΪ£¨Behavior£©¡¢²¼¾Ö£¨Layout£©¡¢Êý¾Ý£¨Data£©¡¢²Ù×÷£¨Action£©¡¢¼üÅÌ£¨Key£©ºÍÊó±ê£¨Mouse£©µÈ¡£³ý´ËÖ®Í⣬»¹¿ÉÒÔ×Ô¶¨Òå·Ö×éÀà±ð¡£
Description
對ÓÚ屬ÐÔ»òÊÇʼþµÄÃèÊö£¬當ʹÓÃÕß選È¡該屬ÐÔ»òʼþ時£¬Æä會顯ʾì¶屬ÐÔ±íÏ·½¡£
Ö¸¶¨ÏÔʾÔÚÊôÐÔä¯ÀÀÆ÷Ï·½£¬ÊôÐÔµÄÎÄ×Ö˵Ã÷¡£
EditorBrowsable
¿ØÖÆ屬ÐÔ»òʼþÊÇ·ñ顯ʾì¶IntelliSense視´°ÖС£Never²»顯ʾ£¬Always顯ʾ£¬ Advanced僅顯ʾì¶進階ʹÓÃÕßģʽ£¬進階ʹÓÃÕßģʽ¿É經ÓÉ Tools|  Options | TextEditor | C# ÖÐ開啟¡£
DesignerSerializationVisibility
Ö¸¶¨ÊôÐÔÊÇ·ñÒÔ¼°ÈçºÎÔÚ´úÂëÖÐÐòÁл¯£¬ÆäֵΪDesignerSerializationVisibilityµÄö¾ÙÖµ¡£´æÔÚ3ÖÖÉèÖ÷½Ê½£ºDesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)Ö¸¶¨ÐòÁл¯³ÌÐò²»Ó¦¸ÃÐòÁл¯ÊôÐÔÖµ£»DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)Ö¸¶¨Ó¦¸ÃÔÊÐíÐòÁл¯³ÌÐòÐòÁл¯ÊôÐÔµÄÖµ£»
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)Ö¸¶¨ÐòÁл¯³ÌÐòÓ¦¸ÃÐòÁл¯ÊôÐÔµÄÄÚÈÝ£¬¶ø²»ÊÇÊôÐÔ±¾Éí¡£´Ë×Ö¶ÎΪֻ¶Á¡£.VisibleΪÆäĬÈÏÖµ¡£
NotifyParentProperty
ָʾµ±´ËÌØÐÔÓ¦Óõ½µÄÊôÐÔµÄÖµ±»ÐÞ¸Äʱ½«Í¨ÖªÆ丸ÊôÐÔ¡£»»ÑÔÖ®£¬Èç¹


Ïà¹ØÎĵµ£º

ASP.NETÖÐʵÏÖÄ£°æµÄ¶¯Ì¬¼ÓÔØ


ASP.NETÖУ¬¾­³£»áʹÓõ½templates(Ä£°æ)¹¦ÄÜ£¬±ÈÈçÔÚdatagrid£¬datalist£¬repeaterµÈ¿Ø¼þÖУ¬Ê¹ÓÃtemplates£¬½«»á´ó´óÔöÇ¿Æ书ÄÜ¡£ÒÔÍù£¬ÎÒÃÇÒ»°ãÊÇÔÚÉè¼Æ³ÌÐòʱ£¬¾ÍÒѾ­ÉèÖúÿؼþÖеÄÄ£°æÊÇÔõÑùµÄÁË¡£µ«ÊÇ£¬ÓеÄʱºò£¬¿ÉÄÜÎÒÃÇÐèÒª¶¯Ì¬¼ÓÔØÄ£°æ£¬±ÈÈ磬µ±ÄãÒªÇóÄãµÄÓ¦ÓóÌÐòµÄ½çÃæ·ç¸ñËæ×ÅÓû§µÄÐèÇó¶ø±ä»¯Ê±£¬Äã¾ÍÐèÒ ......

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


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

ASP.NETÎļþÉÏ´«ÏÂÔØ

ÏÂÔØÎļþ£ºstring musicUrl = "music/" + Request.QueryString["murl"].ToString();
string fileName = Request.QueryString["murl"].ToString();
string filePath = Server.MapPath(musicUrl);//·¾¶
FileInfo fileInfo = new FileInfo(filePath);
Response.Clear();
Response.Cl ......

Asp.netÖжàÓïÑÔµÄʵÏÖ

1.Ê×ÏȵÃÏÈÁ˽âÏÂÃæµÄ֪ʶ£º
  
   Á˽âÒ»¸öÃû´Ê:±í´ïʽÓï·¨
   ±í´ïʽÓï·¨¸ñʽ£º<%$ ... %>
   ËüÊÇASP.NET2.0ÐÂÔöÁËÒ»ÖÖÉùÃ÷ÐÔ±í´ïʽÓï·¨£¬¿ÉÔÚ·ÖÎöҳ֮ǰ½«ÖµÌæ»»µ½Ò³ÖÐ.
   ASP.NET±í´ïʽÊÇ»ùÓÚÔËÐÐʱ¼ÆËãµÄÐÅÏ¢ÉèÖÿؼþÊôÐÔµÄÒ»ÖÖÉùÃ÷ÐÔ·½Ê½.
&n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ