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

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

µÚÒ»ÖÖ·½·¨£º­
     ͨ¹ýURLÁ´½ÓµØÖ·´«µÝ­
send.aspx:­
protected void Button1_Click(object sender, EventArgs e)­
    {­
        Request.Redirect("Default2.aspx?username=honge");­
    }­
receive.aspx:­
string username = Request.QueryString["username"];    // ÕâÑù¿ÉÒԵõ½²ÎÊýÖµ¡£­
­
µÚ¶þÖÖ·½·¨£º­
     ͨ¹ýpost·½Ê½¡£­
send.aspx­
<form id="form1" runat="server" action="receive.aspx" method=post>­
    <div>­
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" />­
<asp:TextBox ID="username" runat="server"></asp:TextBox>­
</div>­
    </form>­
­
receive.aspx­
string username = Ruquest.Form["receive"];      // ÕâÑù¿ÉÒԵõ½²ÎÊýÖµ¡£­
­
­
µÚÈýÖÖ·½·¨£º­
     ͨ¹ýsession­
send.aspx:­
protected void Button1_Click(object sender, EventArgs e)­
    {­
        Session["username"] = "honge";­
        Request.Redirect("Default2.aspx");­
    }­
­
receive.aspx:­
string username = Session["username"];       // ÕâÑù¿ÉÒԵõ½²ÎÊýÖµ¡£­
­
­
µÚËÄÖÖ·½·¨£º­
      Í¨¹ýApplication­
send.aspx:­
protected void Button1_Click(object sender, EventArgs e)­
    {­
        Application["username"] = "honge";­
        Request.Redirect("Default2.aspx");­
    }­


Ïà¹ØÎĵµ£º

asp.net¶¯Ì¬ÉèÖÃWebServiceÒýÓÃ

ÓÐʱºòÐèÒª¶¯Ì¬µÄÉèÖà WebService µÄÖ·£¬ÕâÑù·¢²¼µ½²»Í¬µÄ·þÎñÆ÷ʱ¾ÍÒªÖØÐÂÉú³É£¬Îª´ËÎÒÃÇÐèÒªÔÚweb.configÖж¯Ì¬ÅäÖÃWebServiceµÄµØÖ·£¬ÔÚÍøÉϲéÁ˺ܶà×ÊÁÏ£¬ÆäÖÐÕâÖÖ·½·¨¸Ð¾õºÜºÃÓÃÒ²ºÜºÃʵÏÖ£¬Ô­ÎÄVB.NETʵÏÖ¡£±¾ÈËÒѸÄΪC#°æ
¡¡¡¡Ê×ÏÈÊÖ¶¯µÄÌí¼ÓÒ»¸öWebÒýÓã¨Õâ¸ö¾Í²»ÓÃ˵Á˰ɣ©
¡¡¡¡È»ºóÐ޸ı¾µØµÄ´úÀíÀࣨÌí¼ÓÒ»¸öÐ ......

asp.netÖеĴ°ÌåÉí·ÝÑéÖ¤£¨ÍêÕûƪ֮Î壺Í˳öµÇ¼£©

    Ç°Ãæ½éÉܹýÁËÈçºÎʹÓÃForms·½Ê½½øÐÐÓû§Éí·ÝÑéÖ¤£¬È»¶ø£¬ÔÚ´ó¶àÍøÕ¾Öж¼»áÓÐÒ»¸ö“Í˳ö”¹¦ÄÜ£¬ÈÃÓû§¿ÉÒÔͨ³öµÇ¼¡£ÔÚasp.netÖУ¬Í˳öµÄ·½Ê½ºÜ¼òµ¥£¬Ö»ÒªÔÚÍ˳öÒ³ÃæÖмÓÉÏ´úÂë“FormsAuthentication.SignOut()”¼´¿É¡£
    Äã¿ÉÒÔʹÓÃResponse.Redirect()ÔÚÍ˳öÖ® ......

asp.netÖеĴ°ÌåÉí·ÝÑéÖ¤£¨ÑéÖ¤HTMLÎļþ£©

    ÔÚÇ°ÃæµÄ¼¸ÆªÎÄÕÂÖнéÉÜÁËasp.netµÄ´°ÌåÉí·ÝÑéÖ¤£¬ÕâÖÖÉí·ÝÑéÖ¤·½Ê½¿ÉÒÔÈÃͨ¹ýÑéÖ¤µÄÓû§·ÃÎÊÖ¸¶¨µÄĿ¼£¬¶øÃ»ÓÐͨ¹ýÑéÖ¤µÄÓû§²»ÄÜ·ÃÎʸÃĿ¼ÏµÄÍøÒ³¡£
    µ«ÊÇ£¬ÓÐÒ»ÖÖÀýÍ⣬¾ÍÊÇĿ¼ÖеÄhtmlÎļþÀýÍâ¡£ÀýÈ磬ÔÚ¡¶asp.netÖеĴ°ÌåÉí·ÝÑéÖ¤£¨×î¼òµ¥Æª£©¡·ÖнéÉܵ쬳ýÁ˵ÇÂ¼ÍøÒ³Ö®Íâ ......

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ