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

asp.net ÍøÒ³´«²ÎµÄ¼¸ÖÖ³£Ó÷½Ê½

asp.net ÍøÒ³´«²ÎµÄ¼¸ÖÖ³£Ó÷½Ê½
µÚÒ»ÖÖ£ºQueryString
//½«Ô´Ò³Ãæstart.aspxÖеÄlable ºÍtextboxÖеÄÄÚÈÝ´«µ½end.aspxÒ³ÃæÖР ²¢ÔÚÆälable ºÍtextboxÖÐÏÔʾ´«¹ýÀ´µÄÄÚÈÝ
   Ô´Ò³Ãæ´úÂ룺
protected void Button1_Click(object sender, EventArgs e)
    {
        string url;
        url = "end.aspx?name="+Label1.Text+"&home="+TextBox1.Text;
        Response.Redirect(url);
    } 
Ä¿±êÒ³´úÂ룺
    protected void Page_Load(object sender, EventArgs e)
    {
        ///ͨ¹ýQueryString´«²ÎÊý
        Label1.Text = Request.QueryString["name"];
        TextBox1.Text=Request.QueryString["home"];
    }
 
µÚ¶þÖÖ£ºÍ¨¹ýSession´«²ÎÊý
Ô´Ò³Ãæ´úÂ룺
    protected void Button1_Click(object sender, EventArgs e)
    {
         Session["name"]=Label1.Text;
        Session["home"] = TextBox1.Text;
        Server.Transfer("end.aspx");
    }
Ä¿±êÒ³´úÂ룺
    protected void Page_Load(object sender, EventArgs e)
    {
               
        //ͨ¹ýSession´«²ÎÊý
        Label1.Text=Session["name"].ToString();
        TextBox1.Text = Session["home"].ToString();
        //Ó¦¸ÃʹÓÃһЩÇåÀí¶¯×÷À´È¥³ýһЩ²»ÐèÒªµÄsessionÀ´½µµÍ×ÊÔ´µÄÎÞνÏûºÄ.
        Session.Remove("name");
        Session.Remove("home");
 


Ïà¹ØÎĵµ£º

13¸ö²»¿É²»ÖªµÄASP.NET MVCÀ©Õ¹µã

ASP.NET MVCÉè¼ÆµÄÖ÷ÒªÔ­ÔòÖ®Ò»ÊÇ¿ÉÀ©Õ¹ÐÔ¡£´¦Àí¹ÜÏߣ¨processing pipeline£©ÉϵÄËùÓУ¨»ò´ó¶àÊý£©¶«Î÷¶¼ÊÇ¿ÉÌæ»»µÄ¡£Òò´Ë£¬Èç¹ûÄú²»Ï²»¶ASP.NET MVCËùʹÓõÄÔ¼¶¨£¨»òȱ·¦Ä³Ð©Ô¼¶¨£©£¬Äú¿ÉÒÔ´´½¨×Ô¼ºµÄ·þÎñÀ´Ö§³ÖÄúµÄÔ¼¶¨£¬²¢½«Æä×¢Èëµ½Ö÷¹ÜÏßÖС£
ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«´Ó¹ÜÏß¿ªÊ¼Ö±µ½ÊÓͼ³ÊÏÖ£¬ÖðÒ»ÏòÄúչʾÿ¸öASP.NET MVC¿ª ......

ÅäÖÃASP.netÔËÐÐÈÕÖ¾

ÎÒÖ÷ÒªÓÃÀ´¸ú×Ùºǫ́µÄһЩÇé¿ö£¬ÎÒÓõÄÊÇÒ»¸öµÚÈý·½²å¼þ£¬ºÜºÃÓõÄ
log4net
¾ßÌåʹÓÃÈçÏ£º
Web.configÅäÖãº
<configSections>
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net"/>
</configSections>
<log4net>
 &nbs ......

ASP.Net Ò³Ã滺´æƬ¶ÎʹÓü¼ÇÉ

Ò³Ã滺´æʹÓÃOutputCacheÖ¸Áî¡£ÆäÖÐDurationºÍVaryByParamÌØÐÔÊDZØÐëµÄ¡£ Location¿ØÖÆÒ³Ã滺´æµÄλÖÃLocationº¬ÒåAnyĬÈÏÖµ¡£Òâζ×ÅÒ³ÃæµÄÊä³ö¿ÉÒÔ»º´æÔÚ¿Í»§¶Ëä¯ÀÀÆ÷£¬»º´æÔÚÈκÎ"ÏÂÓÎ"µÄ¿Í»§¶Ë£¨Èç´úÀí·þÎñÆ÷£©£¬»ò»º´æÔÚWeb·þÎñÆ÷±¾ÉíClientÖ¸Ã÷Êä³ö»º´æÖ»ÄÜ´æ´¢ÔÚ·¢³öÇëÇóµÄ¿Í»§¶Ë£¨¼´ä¯ÀÀÆ÷£©µÄ±¾µØ»º´æÖÐDownstreamÖ ......

asp.netÐÔÄÜÓÅ»¯µÄ¼¸¸ö·½Ãæ

c#£¨»òvb.net£©³ÌÐò¸Ä½ø
1¡¢Ê¹ÓÃÖµÀàÐ͵ÄToString·½·¨
¡¡¡¡ÔÚÁ¬½Ó×Ö·û´®Ê±£¬¾­³£Ê¹ÓÃ"+"ºÅÖ±½Ó½«Êý×ÖÌí¼Óµ½×Ö·û´®ÖС£ÕâÖÖ·½·¨ËäÈ»¼òµ¥£¬Ò²¿ÉÒԵõ½ÕýÈ·½á¹û£¬µ«ÊÇÓÉÓÚÉæ¼°µ½²»Í¬µÄÊý¾ÝÀàÐÍ£¬Êý×ÖÐèҪͨ¹ý×°Ïä²Ù×÷ת»¯ÎªÒýÓÃÀàÐͲſÉÒÔÌí¼Óµ½×Ö·û´®ÖС£µ«ÊÇ×°Ïä²Ù×÷¶ÔÐÔÄÜÓ°Ïì½Ï´ó£¬ÒòΪÔÚ½øÐÐÕâÀà´¦Àíʱ£¬½«ÔÚÍйܶÑÖÐ ......

ASP.NETÃæÊÔÌâ .NETϵÁÐÃæÊÔÌâ


2009-12-03
1. ¼òÊö private¡¢ protected¡¢ public¡¢ internal ÐÞÊηûµÄ·ÃÎÊȨÏÞ¡£
´ð . private : ˽ÓгÉÔ±, ÔÚÀàµÄÄÚ²¿²Å¿ÉÒÔ·ÃÎÊ¡£
protected : ±£»¤³ÉÔ±£¬¸ÃÀàÄÚ²¿ºÍ¼Ì³ÐÀàÖпÉÒÔ·ÃÎÊ¡£
public : ¹«¹²³ÉÔ±£¬ÍêÈ«¹«¿ª£¬Ã»ÓзÃÎÊÏÞÖÆ¡£
internal: ÔÚͬһÃüÃû¿Õ¼äÄÚ¿ÉÒÔ·ÃÎÊ¡£
2 .ÁоÙASP.NET Ò³ÃæÖ®¼ä´«µÝÖµµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ