ÔÚ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£¬¶ÔÕÕ×ÅÔÀ´
Ïà¹ØÎĵµ£º
string filepath = FileUpload1.FileName; &nb ......
ÐèÒªÓõ½µÚÈý·½¿Ø¼þ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 ......
µÚÒ»ÖÖ·½·¨£º
ͨ¹ýURLÁ´½ÓµØÖ·´«µÝ
send.aspx:
protected void Button1_Click(object sender, EventArgs e)
{
Request.Redirect("Default2.aspx?username=honge");
&n ......
Ò»¡¢¸ÅÊö
Marquee£ºHtmlÖйöÆÁ¿Ø¼þ£¬¿ÉÒÔʹ°üº¬Ôڴ˱ê¼ÇÖеÄÄÚÈݽøÐи÷¸ö·½Ïò£¬¸÷ÖÖËٶȵĹö¶¯£¬Òò´ËÔÚ²»¿¼ÂÇʹÓõÚÈý·½¿Ø¼þµÄÇ°ÌáÏ£¬¿¼ÂÇʹÓÃMarquee+xmlhttpÀ´ÊµÏÖ¶¨´Î¸üÐÂÒ³ÃæÖеĹö¶¯ÄÚÈÝ£¬´ËʵÏÖÔÚIE6.0¼°ÒÔÉÏ°æ±¾²âÊÔͨ¹ý£¬ÆäËûä¯ÀÀÆ÷ÔÝʱδ²âÊÔ¹ý¡£
MarqueeÖеÄonfinishʼþ£ºÔÚ¸øMarqueeÊôÐÔloop¸ ......
Cache ¼´¸ßËÙ»º´æ £¬ÎÒÏëºÜ¶àÈ˶ÔËûµÄµÚÒ»Ó¡ÏóÒ»¶¨ÏñÎÒÒ»Ñù£¬¸Ð¾õËûÒ»¶¨ÄÜÌá¸ßϵͳµÃÐÔÄܺÍÔËÐÐËٶȡ£µÄÈ·¡£NetÍƳöcacheµÄ³õÖÔȷʵÊÇÕâÑùµÄ¡£ÄÇôcacheÊÇÈçºÎÌá¸ßϵͳÐÔÄÜÓëÔËÐÐËÙ¶ÈÄØ£¿ÊDz»ÊÇÔÚÈκÎÇé¿öÏÂÓÃcache¶¼ÄÜÌá¸ßÐÔÄÜ£¿ÊDz»ÊÇcacheÓõÄÔ½¶à¾ÍÔ½ºÃÄØ£¿ÎÒÔÚ½üÆÚ¿ª·¢µÄÏîÄ¿ÖÐÓÐËùÌå»á£¬Ð´ÏÂÀ´µ±×÷×ܽáҲϣÍûÄܸú´ó¼Ò ......