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

C# ASP.NET »ñÈ¡½Å±¾Óï¾ä²¢ÓÃÎı¾µÄ·½Ê½ÏÔʾ³öÀ´

protected void Button6_Click(object sender, EventArgs e)
    {
        this.Label11.Text = HtmlEncode(this.TextBox3.Text);
 
       
    }
    protected static string HtmlEncode(string the)
    {
   
        the = the.Replace("<", "&lt;");
        the = the.Replace(" ", "&nbsp;");
        the = the.Replace("\"", "&quot;");
        the = the.Replace("\'", "'");
        the = the.Replace("\n", "<br/> ");
        return the;
    }
ͨ¹ýÔÚ Page Ö¸Áî»ò ÅäÖýÚÖÐÉèÖà validateRequest=false
¾ÍÊÇÔÚÒ³ÃæÖмÓÈë
<%@page validateRequest=false %>


Ïà¹ØÎĵµ£º

asp.netÎļþºÍÎļþ¼ÐѹËõ

·¨Ò»£ºµ÷ÓÃwinrar
using Microsoft.Win32;
using System.Diagnostics;
protected void Button1_Click(object sender, EventArgs e)
    {
        RAR(@"E:\95413594531\GIS", "tmptest", @"E:\95413594531\");
    }
    /// ......

½«Asp.netÒ³ÃæÊä³öΪHTML

WebRequest mywebrq;
WebResponse mywebresp;
StreamReader sr;
Streamwriter sw;
Private void Page_Load(object sender,EventArgs e) { mywebreq=WebRequest.Create( http://localhost/Test.aspx ); mywebresp=mywebreq.GetResponse();
sr=new streamReader(mywebresp.GetResponsestream());
strHtml=sr.ReadT ......

Ìá¸ßASP.NETÐÔÄܵķ½·¨

 
 Ò»¡¢ÐÔÄܲÎÊý£º
¡¡¡¡1¡¢ ÍÌÍÂÁ¿
¡¡¡¡2¡¢ ÏìӦʱ¼ä
¡¡¡¡3¡¢ Ö´ÐÐʱ¼ä
¡¡¡¡4¡¢ ¿ÉÉìËõÐÔ
¡¡¡¡¶þ¡¢ÐÔÄÜÒòËØ£º
¡¡¡¡1¡¢ASPXÖ´Ðл·¾³
¡¡¡¡2¡¢±àд´úÂëÂß¼­
¡¡¡¡Èý¡¢Ìá¸ßÐÔÄܵķ½·¨£º
¡¡¡¡1¡¢ ±ÜÃâ²»±ØÒªµÄ²Ù×÷.ÀýÈç:ÔÚPage_LoadÖÐʹÓÃIsPostBack;
¡¡¡¡2¡¢ ¾¡Á¿¼õÉÙʹÓ÷þÎñÆ÷¶Ë¿Ø¼þ
¡¡¡¡3¡¢ ¹Ø±Õ²»±ØÒª ......

java Óë c# ¶Ô±È ˼¿¼

´ÓʱàÂë7Äê¶àÁË
¶ÔÓÚjava ºÍc# ÎÒÓÐ×Å×Ô¼ºµÄÀí½â
ÔÚ2009ÄêµÄ9ÔÂÕâ¸öʱ¼äµãÎÒ¿´À´java  c#ÊÇÐÂʽÓïÑԵĴú±í
{ÒòΪÎÒÈÏΪ¼ÆËã»úµÄ·¢Õ¹Àú³ÌÊÇ
µÚÒ»½×¶Î ´ò¿×»ú(¶þ½øÖÆ),
µÚ2½×¶Î »ã±à, (±È¶þ½øÖÆ·½±ãµÄÓïÑÔ),
µÚ3½×¶Î c (¸üÒ×ÓÚ¿´Ã÷°×µÄ¸ß¼¶ÓïÑÔ),
µÚ4½×¶ÎµÚ1²ã c++ (´Ó¶ÔÏó½Ç¶ÈÀí½âµÄ¸ß¼¶ÓïÑÔ),
µÚ4½×¶ÎµÚ2² ......

ASP.NET WebÓ¦ÓóÌÐòдEventLog³ö´íµÄ½â¾ö·½°¸

×î½üÔÚ¶ÔÓ¦Ò»¸öASP.NET WebÓ¦ÓóÌÐòBugµÄʱºò£¬ÎªÁ˵÷²éÔËÐл·¾³ÖоßÌåµÄBugÓÚÊDzéÔÄÁËһϴíÎóÈÕÖ¾¡£
Õâ¸ö³ÌÐòµÄ´íÎóÈÕÖ¾ÊÇÖ±½Ó±£´æÔÚÒ»¸öÎı¾ÎļþÖеģ¬½á¹û·¢ÏÖ¾ÍËãÊdzö´íÒ²²»»áÁôÏÂÈκκۼ£¡£
Ò»µ÷ÊÔ£¬¾¹È»ÊÇ°Ñ´íÎóÈÕÖ¾µÄ±£´æ·¾¶¸øд´íÁË¡£My God£¡
°Ñ·¾¶¸ÄÁË£¬×ªÄîÒ»ÏëÏ´γö´íÔÙ²»±£´æÔõô°ì£¿Ë­ÖªµÀÕæÕýµÄ»·¾³À ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ