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("<", "<");
the = the.Replace(" ", " ");
the = the.Replace("\"", """);
the = the.Replace("\'", "'");
the = the.Replace("\n", "<br/> ");
return the;
}
ͨ¹ýÔÚ Page Ö¸Áî»ò ÅäÖýÚÖÐÉèÖà validateRequest=false
¾ÍÊÇÔÚÒ³ÃæÖмÓÈë
<%@page validateRequest=false %>
Ïà¹ØÎĵµ£º
The C# classes that you design will be used by code that you write and possibly by code that
other people write. Your C# classes may be used by a VB.NET application or from within an
ASP.NET page. Moreover, your classes may very well be used alongside other classes
designed by other .NET develope ......
¹ØÓÚC#ÖÐtimerÀà ÔÚC#Àï¹ØÓÚ¶¨Ê±Æ÷Àà¾ÍÓÐ3¸ö
1.¶¨ÒåÔÚSystem.Windows.FormsÀï
2.¶¨ÒåÔÚSystem.Threading.TimerÀàÀï
3.¶¨ÒåÔÚSystem.Timers.TimerÀàÀï
System.Windows.Forms.TimerÊÇÓ¦ÓÃÓÚWinFormÖеģ¬ËüÊÇͨ¹ýWindowsÏûÏ¢»úÖÆÊµÏ ......
ÎÄ / À£¨¹âÓî¹ãÕ꣩
·½·¨¶à̬ÓëÀàÐͶà̬
Á˽â OOP µÄͬѧ¶ÔÀàÐͶà̬¶¼ºÜÊìϤÁË¡£»°Ëµ£¬ÀàÐͶà̬֮¶à̬±ãÌåÏÖÔÚ·½·¨ÉÏ£¬ÄÇ·½·¨¶à̬ÓÖÊÇÂïÍæ¶ù£¿ÀàÐͶà̬֮ÀàÐÍÖ¸µÄÊǶÔÏñµÄÀàÐÍ£¬Æä·½·¨ÊÇÊܶÔÏñÔ¼ÊøµÄ¡£·½·¨¶à̬±ãÊDz»ÊܶÔÏñÀàÐÍÔ¼ÊøµÄ¶à̬¡£¾ßÌåÇø±ðÔÚ£º
·½·¨¶à̬ÎÞÐè¼Ì³Ð ......
×î½üÔÚ¶ÔÓ¦Ò»¸öASP.NET WebÓ¦ÓóÌÐòBugµÄʱºò£¬ÎªÁ˵÷²éÔËÐл·¾³ÖоßÌåµÄBugÓÚÊDzéÔÄÁËһϴíÎóÈÕÖ¾¡£
Õâ¸ö³ÌÐòµÄ´íÎóÈÕÖ¾ÊÇÖ±½Ó±£´æÔÚÒ»¸öÎı¾ÎļþÖе쬽á¹û·¢ÏÖ¾ÍËãÊdzö´íÒ²²»»áÁôÏÂÈκκۼ£¡£
Ò»µ÷ÊÔ£¬¾¹È»ÊǰѴíÎóÈÕÖ¾µÄ±£´æÂ·¾¶¸øÐ´´íÁË¡£My God£¡
°Ñ·¾¶¸ÄÁË£¬×ªÄîÒ»ÏëÏ´γö´íÔÙ²»±£´æÔõô°ì£¿ËÖªµÀÕæÕýµÄ»·¾³À ......