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

ASP.NET 2.0 ±¾µØ»¯1

  ÖÚËùÖÜÖªASP.NET 2.0Àï¶Ô±¾µØ»¯£¨Localization£©×öÁ˺ܶ๤×÷£¬´ó´ó¼ò»¯ÁË¿ª·¢¹ý³Ì¡£½ñÌìÖÕÓÚÄܳé³öʱ¼äÑо¿Ò»ÏÂÕâ¸ö¼¼ÊõÁË£¬×ÊÁϺܶ࣬µ«´ó¶à´ø×ÅÒ»¹ÉÒ§ÎĽÀ×ֵķ­ÒëζµÀ£¬So......×Ô¼ºÐ´Ò»Æª¡£
1.ʹÓù¤¾ß×Ô¶¯Éú³É±¾µØ»¯×ÊÔ´£¨LocalResources£©
2.Ô­À´Localizable AttributePropertyÊÇÕâô»ØÊÂѽ
3.ÊÖ¹¤Ìí¼Ó±¾µØ»¯×ÊÔ´
4.ÏÔʾʹÓñ¾µØ»¯×ÊÔ´
5.È«¾Ö×ÊÔ´µÄʹÓã¨GlobalResources£©
6.ÈçºÎÔÚºǫ́±à³ÌʱʹÓÃÕâÁ½ÖÖ×ÊÔ´
7.±à³ÌÇл»ÓïÑÔÉèÖÃ
8.ʹÓÃͼƬ×ÊÔ´
9.´úÂëÏÂÔØ
1.ʹÓù¤¾ß×Ô¶¯Éú³É±¾µØ»¯×ÊÔ´£¨LocalResources£©
Ê×Ïȵ±È»Êǽ¨Á¢Ò»¸öWEB¹¤³ÌÀ²£¬ÈçͼËùʾ£º
Ë«»÷Default.aspx£¬Çл»µ½[Éè¼Æ]ÊÓͼ£¬´Ó¹¤¾ßÏäÀïÍÏÒ»¸öButton½øÀ´¡£µã»÷²Ëµ¥ÖеÄ[¹¤¾ß]->[Éú³É±¾µØ×ÊÔ´]£¬ÈçͼËùʾ£º
Õâʱ·¢ÏÖÔÚ½â¾ö·½°¸·½°¸ÊÓͼÀï×Ô¶¯Ôö¼ÓÁËÒ»·Ý±¾µØ×ÊÔ´£¬ÈçÏÂͼËùʾ£º
Çл»µ½ÊôÐÔÊÓͼ£¬¿ÉÒÔ¿´µ½TextºÍToolTip¶¼±»¼ÓÉÏÁËÒ»¸öºìÉ«·ûºÅ£¬Ìáʾ“ÊôÐÔÊÇÓñí´ïÐÎʽÒþʽ°ó¶¨µÄ”£¬ÈçÏÂͼËùʾ£º£¨×¢Ò⣺ֻÓÐÔÚÊÓͼ״̬ÏÂÑ¡Öпؼþ²ÅÄÜ¿´µ½ÕâÁ½¸öÊôÐÔÓ´£©
ΪÁËÔö¼Ó¶Ô¶àÓïÑÔµÄÖ§³Ö£¬ÎÒÃÇÏÖÔÚÓÒ¼üDefault.aspx.resx£¬µã»÷¸´ÖÆ£¬ÔÙÑ¡ÖÐApp_LocalResourcesĿ¼£¬µã»÷Õ³Ìù£¬½«“¸±±¾ Default.aspx.resx”ÖØÃüÃûΪDefault.aspx.en-us.resx£¬ÈçͼËùʾ£º
·Ö±ð±à¼­Default.aspx.resxºÍDefault.aspx.en-s.resx µÄÄÚÈÝ£¬ÈçÏÂͼʾ£º
Default.aspx.resx
Default.aspx.en-s.resx
´ò¿ªDefault.aspx£¬ÔÚ Page ±êÇ©ÀïÌí¼ÓCulture="auto" UICulture="auto"£¬ÈçÏÂËùʾ£º
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" meta:resourcekey="PageResource1" UICulture="auto" Culture="auto" %>
Ö»ÓÐÕâÑù£¬ºóÃæ²ÅÄÜ»ñÈ¡ä¯ÀÀÆ÷µÄÊ×Ñ¡ÓïÑÔÉèÖá£Èç¹ûÒª¼Óµ½ Web.config ÖУ¬ÈçÏÂËùʾ£º
    <system.web>
        <globalization uiCulture="auto" culture="auto" />
    </system.web>
ÔËÐÐÍøÕ¾£¬Ð§¹ûÈçÏÂͼËùʾ£º
µã»÷IE²Ëµ¥µÄ[¹¤¾ß]->[Internet Ñ¡Ïî]£¬ÔÚµ¯³öµÄ¶Ô»°¿òÖеã[³£¹æ]Ñ¡ÏµÄ[ÓïÑÔ]°´Å¥£¬µ¯³ö[ÓïÑÔÊ×Ñ¡Ïî]¶Ô»°¿ò£¬ÈçÏÂͼËùʾ£º
µã»÷[Ìí¼Ó]°´Å¥£¬Ñ¡ÔñÓ¢Óï(ÃÀ¹ú)£¬²¢ÉÏÒƵ½µÚһ룬ÈçÏÂͼËùʾ£º
һ·[È·¶¨]µãÏÂÀ


Ïà¹ØÎĵµ£º

ASP.NET½«WebÕ¾µãϵľø¶Ô·¾¶×ª»»ÎªÐéÄâ·¾¶

ASP.NET½«WebÕ¾µãϵľø¶Ô·¾¶×ª»»ÎªÐéÄâ·¾¶
2009-11-25 10:39
ºÜ¾­³£Ê¹Óõ½µÄÒ»¸ö¹¦ÄÜ,µ«ÔÚÔÚÍøÉÏȴһֱûÓÐÕÒµ½Ïà¹ØµÄ½â¾ö·½·¨,½ñÌì½è×ÅÏîÄ¿Ó¦Óõ½µÄ»ú»áдÁËÁ½¸ö½«¾ø¶Ô·¾¶×ª»»ÎªÐéÄâ·¾¶·â×°ºÃµÄ·½·¨
¡¡¡¡½«WebÕ¾µãϵľø¶Ô·¾¶×ª»»ÎªÏà¶ÔÓÚÖ¸¶¨Ò³ÃæµÄÐéÄâ·¾¶
¡¡¡¡/**//// <summary>
¡¡¡¡/// ½«WebÕ¾µãϵ ......

ASP.NETÍøÒ³ÔÚVS2008ÖеÄÉú³ÉÁ÷³Ì

ÍòÊ¿ªÍ·ÄÑ
ÕÒÁ˺ܶàAPS.NETµÄÊ飬ÒÔ¼°ÌýÀÏʦ½²µÄÖÆ×÷Á÷³Ì£¬»òÕßÔÚMSDNÀïÕÒµ½µÄ×ÊÁÏ£¬
´ó¸ÅÒòΪ±àÒëÆ÷µÄÔ­Òò£¬¶¼²»Ì«Ïàͬ£¬µ¼ÖÂ×Ô¼º°´×Ų½ÖèÒ²×ö²»¶Ô
½ñÌìÖÕÓÚÖªµÀÕý¹æµÄ×ö·¨ÁË ¹þ¹þ  ¸Ï¿ì¼ÇÏÂÁË~
1.File=¡·Îļþ=¡·Ð½¨=¡·ÍøÕ¾=¡·ASP.NETÍøÕ¾
µã»÷È·ÈϾͿÉÒÔÁË
2.¿ªÊ¼Éè¼ÆÒ³Ãæ
Éè¼ÆÈ«²¿ÊÇÔÚDefault.aspxÀïÃæ
Ë ......

ASP.NET Ò³Ãæ¶ÔÏóÄ£ÐÍ

¼ò½é
Microsoft Internet ÐÅÏ¢·þÎñ (IIS) ËùÊÕµ½µÄ¶Ôij Microsoft ASP.NET Ò³ÃæµÄÿ¸öÇëÇ󶼱»Òƽ»¸ø ASP.NET HTTP ¹ÜÏß¡£HTTP ¹ÜÏßÓÉһϵÁÐÍйܶÔÏó×é³É£¬ÕâЩ¶ÔÏó°´Ë³Ðò´¦Àí¸ÃÇëÇ󣬲¢Íê³É´Ó URL µ½ÆÕͨ HTML Îı¾µÄת»»¡£HTTP ¹ÜÏßµÄÈë¿ÚµãÊÇ HttpRuntime Àà¡£ASP.NET »ù´¡½á¹¹Îª¸¨Öú½ø³ÌÖÐËù³ÐÔصÄÿ¸ö AppDomain ´´½¨ ......

ASP.NET


      Êý¾ÝÔ´¿Ø¼þÌṩ¶àÖÖÊý¾Ý·þÎñ£¬ÕâÑù½«¸ß¼¶¹¦ÄÜÌí¼Óµ½Ó¦ÓóÌÐò»á±äµÃ¸ü¼ÓÈÝÒס£Õâ°üÀ¨¸ù¾ÝÖ¸¶¨µÄËÑË÷Ìõ¼þɸѡÊý¾Ý¡£É¸Ñ¡¶ÔÓÚʹÓûº´æÊý¾ÝÓÈÆä·½±ã£¬ÒòΪÄúÎÞÐèÖØÐÂÔËÐвéѯ»òµ÷ÓöÁÈ¡Êý¾ÝµÄ·½·¨¾Í¿ÉÒÔÌṩËÑË÷¹¦ÄÜ¡£
      ÈôҪɸѡÊý¾Ý£¬±ØÐë°´ÏÂÁз½Ê½ÅäÖÃÊý¾Ý ......

asp.netÉÏ´«ÎļþС½á

 
£¼input id = " loFile " type = " file " runat = " server " £¾
£¼form method = " post " enctype =" multipart/form-data " runat = " server "£¾
£¼/form £¾
1.»ñµÃÉÏ´«ÎļþµÄÃû³Æ£º£¨¹Ø¼üÊÇPostedFileÀàµÄÓ¦Óã©
ʹÓÃPathÀàÖеÄGetFileName·½·¨£¬¾ßÌåÈçÏ£º
lstrFileName = loFile.PostedFile.FileName ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ