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

ÔÚASP.Net 2.0ÖÐʵÏÖ¶àÓïÑÔ½çÃæµÄ·½·¨

1£® ¸úÒÔÇ°Ò»Ñù×ö½çÃ棬ֻÊÇ×¢Ò⣬°ÑËùÓÐÐèÒªÓжàÓïÑÔ½çÃæµÄÎÄ×Ö¶¼ÓÃlabelÀ´×ö
¡¡¡¡2£® ×öÍêÒÔºó£¬ÔÚSolution ExplorerÀïÑ¡ÖÐÕâ¸öÎļþ£¬Ñ¡Tools-£¾Generate Local Resource
¡¡¡¡3£® Äã»á·¢ÏÖÉú³ÉÁËÒ»¸öĿ¼£¬App_LocalResources£»Õâ¸öĿ¼Àï¶àÁËÒ»¸öresxµÄÎļþ¡£±ÈÈçÄãµÄaspxÎļþÊÇdefault.aspx£¬Ëü¾Í»áÉú³ÉÒ»¸ö½Ð×ödefault.aspx.resxµÄÎļþ¡£
¡¡¡¡4£® ´ò¿ªÕâ¸öÎļþ¿´¿´£¬Ô­À´ÔÚlabelÖеÄÄÇЩÎÄ×Ö¶¼Åܵ½ÕâÀïÀ´ÁË
¡¡¡¡5£® ´ò¿ªÔ­À´µÄaspxÎļþ¿´¿´source£¬»á·¢ÏÖÔ´Âë±äÁË£º
£¼%@ Page Language="VB" MasterPageFile="'/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default2" title="Untitled Page" Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %£¾
…………
£¼asp:Localize ID="Localize1" runat="server" meta:resourcekey="Localize1Resource1"£¾£¼/asp:Localize£¾
*********************************************************************
¡¡¡¡Èç¹ûÊÇÆäËûµÄ¿Ø¼þÉϵÄÎÄ×Ö£¬»ù±¾ÉÏÒ²ÊÇ»á×Ô¶¯Éú³ÉµÄ¡£±ÈÈçbuttonºÍgridviewµÄ£º
£¼asp:Button ID="Button1" runat="server" meta:resourcekey="Button1Resource1" Text="Button1" /£¾£¼br /£¾
£¼asp:GridView ID="GridView1" runat="server" meta:resourcekey="GridView1Resource1"£¾
£¼Columns£¾
£¼asp:BoundField HeaderText="Header1" meta:resourcekey="BoundFieldResource1" /£¾
£¼asp:BoundField HeaderText="Header2" meta:resourcekey="BoundFieldResource2" /£¾
£¼/Columns£¾
£¼/asp:GridView£¾
¡¡¡¡Éú³ÉµÄresourceÈçÏ£º
¡¡¡¡
¡¡¡¡ *********************************************************************
¡¡¡¡6£® ×¢ÒâÕâÀmeta:resourcekey="PageResource1" ºÍmeta:resourcekey="Localize1Resource1" Õâ¾Í±íʾÕâÀïµÄÎÄ×ÖÊÇ´Ó×ÊÔ´ÖжÁÈ¡µÄ¡£
¡¡¡¡7£® OKÏÖÔÚÀ´×öÁíÒ»ÖÖÓïÑÔµÄ×ÊÔ´Îļþ¡£ºÜ¼òµ¥£¬copy Default.aspx.resxÔÙpasteһϣ¬È»ºórenameΪDefault.aspx.fr-fr.resx×¢Òâfr-frÊÇÄãÒª×öµÄÓïÑÔµÄÃû×Ö¡£´ó¼ÒÈç¹û¿´dvdripµÄ»°£¬Ó¦¸Ã¾õµÃÕâ¸ú×ÖÄ»ÎļþºÜÏñ°É£¿
¡¡¡¡8£® ÓÐÈË˵ÎÒÔõô֪µÀÄǸöÓïÑÔ½ÐʲôÃû×ÖÄØ£¿ºÜ¼òµ¥£¬´ò¿ªie£¬tools-£¾internet options -£¾ languages -£¾ add£¬·½¿òÖмäµÄ¾ÍÊÇÁË¡£
¡¡¡¡9£® ÏÖÔÚ¿ªÊ¼±à¼­ÆäËû×ÊÔ´µÄÎÄ×Ö¡£´ò¿ªDefault.aspx.fr-fr.resx£¬¶ÔÕÕ×ÅÔ­À´


Ïà¹ØÎĵµ£º

asp.netÏÂʵÏÖÎļþÉÏ´«µ½·þÎñÆ÷

   string filepath = FileUpload1.FileName;                                        &nb ......

asp.net½âѹËõÎļþ¼Ð

ÐèÒªÓõ½µÚÈý·½¿Ø¼þICSharpCode.SharpZipLib.dll
using System.IO;
using System.IO.Compression;
using ICSharpCode.SharpZipLib.Zip;
using ICSharpCode.SharpZipLib.GZip;
using ICSharpCode.SharpZipLib.Checksums;  
  #region ѹËõÎļþ¼Ð,Ö§³ÖµÝ¹é
/// <summary>
   &nb ......

Asp.netÒ³ÃæÖ®¼ä´«µÝ²ÎÊý·½·¨

µÚÒ»ÖÖ·½·¨£º­
     ͨ¹ýURLÁ´½ÓµØÖ·´«µÝ­
send.aspx:­
protected void Button1_Click(object sender, EventArgs e)­
    {­
        Request.Redirect("Default2.aspx?username=honge");­
  &n ......

ASP.NET+Ajax+JavascriptʵÏÖÒ³Ã涨´Îˢйö¶¯ÄÚÈÝ

Ò»¡¢¸ÅÊö
  Marquee£ºHtmlÖйöÆÁ¿Ø¼þ£¬¿ÉÒÔʹ°üº¬Ôڴ˱ê¼ÇÖеÄÄÚÈݽøÐи÷¸ö·½Ïò£¬¸÷ÖÖËٶȵĹö¶¯£¬Òò´ËÔÚ²»¿¼ÂÇʹÓõÚÈý·½¿Ø¼þµÄÇ°ÌáÏ£¬¿¼ÂÇʹÓÃMarquee+xmlhttpÀ´ÊµÏÖ¶¨´Î¸üÐÂÒ³ÃæÖеĹö¶¯ÄÚÈÝ£¬´ËʵÏÖÔÚIE6.0¼°ÒÔÉÏ°æ±¾²âÊÔͨ¹ý£¬ÆäËûä¯ÀÀÆ÷ÔÝʱδ²âÊÔ¹ý¡£
  MarqueeÖеÄonfinishʼþ£ºÔÚ¸øMarqueeÊôÐÔloop¸ ......

Asp.NetʹÓÃCache ÐÄÓêÖ®¼Ò

Cache ¼´¸ßËÙ»º´æ £¬ÎÒÏëºÜ¶àÈ˶ÔËûµÄµÚÒ»Ó¡ÏóÒ»¶¨ÏñÎÒÒ»Ñù£¬¸Ð¾õËûÒ»¶¨ÄÜÌá¸ßϵͳµÃÐÔÄܺÍÔËÐÐËٶȡ£µÄÈ·¡£NetÍƳöcacheµÄ³õÖÔȷʵÊÇÕâÑùµÄ¡£ÄÇôcacheÊÇÈçºÎÌá¸ßϵͳÐÔÄÜÓëÔËÐÐËÙ¶ÈÄØ£¿ÊDz»ÊÇÔÚÈκÎÇé¿öÏÂÓÃcache¶¼ÄÜÌá¸ßÐÔÄÜ£¿ÊDz»ÊÇcacheÓõÄÔ½¶à¾ÍÔ½ºÃÄØ£¿ÎÒÔÚ½üÆÚ¿ª·¢µÄÏîÄ¿ÖÐÓÐËùÌå»á£¬Ð´ÏÂÀ´µ±×÷×ܽáҲϣÍûÄܸú´ó¼Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ