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

ASP.NET×Ô¶¨Òå´íÎóÒ³Ãæ

ASP.NET ÌṩÈýÖÖÓÃÓÚÔÚ³öÏÖ´íÎóʱ²¶»ñºÍÏìÓ¦´íÎóµÄÖ÷Òª·½·¨£ºPage_Error ʼþ¡¢Application_Error ʼþÒÔ¼°Ó¦ÓóÌÐòÅäÖÃÎļþ (Web.config)¡£
Èç¹ûÄú²»µ÷Óà Server.ClearError »òÕß²¶»ñ Page_Error »ò Application_Error ʼþÖеĴíÎó£¬Ôò½«¸ù¾Ý Web.config ÎļþµÄ <customErrors> ²¿·ÖÖеÄÉèÖô¦Àí´íÎó¡£ÔÚ <customErrors> ²¿·Ö£¬¿É½«Öض¨ÏòÒ³Ö¸¶¨ÎªÄ¬ÈϵĴíÎóÒ³ (defaultRedirect) »òÕ߸ù¾ÝÒý·¢µÄ HTTP ´íÎó´úÂëÖ¸¶¨Ìض¨Ò³¡£Äú¿ÉʹÓô˷½·¨×Ô¶¨ÒåÓû§ÊÕµ½µÄ´íÎóÐÅÏ¢¡£
¾¡¹ÜÄú¿ÉÔÚ <customErrors> ²¿·ÖÖÐ defaultRedirect ÊôÐÔµÄÖµÖÐÒýÓÃĬÈϵĴíÎóÒ³£¬µ«ÊÇÄú»¹¿É¸ù¾ÝÒý·¢µÄ HTTP ´íÎó´úÂëÖ¸¶¨ÒªÖض¨Ïòµ½µÄÌض¨Ò³¡£<error> ×ÓÔªËØÔÊÐíʹÓôËÑ¡Ïî
<customErrors mode="On" defaultRedirect="ApplicationErroy.aspx">
    <error statusCode="403" redirect="403.htm"/>
    <error statusCode="404" redirect="404.htm"/>
    <error statusCode="500" redirect="500.htm"/>
</customErrors>
asp.net×Ô¶¨Òå´íÎó´¦ÀíÒ³Ãæ·½·¨Ò»
1¡¢Ìí¼ÓWeb.config£¬ < system.web>< /system.web>ÖÐÌí¼Ó< customErrors mode="On"
defaultRedirect="ApplicationErroy.aspx" >< /customErrors>½Úµã£¬
2¡¢Ìí¼Ó´íÎó´¦ÀíÒ³Ã棺ApplicationErroy.aspxµ÷ÓÃÏÂÃæµÄ·½·¨£º
private void DealErroy()    
     {    
         HttpException erroy = new HttpException();    
         string strCode = erroy.ErrorCode.ToString();    
         string strMsg = erroy.Message;    
         erroy.HelpLink = "sss";    
         Response.Write("ErrorCode:" + strCode + "< br>");    
         Response.Write("Message:" + strMsg + "< br>");    


Ïà¹ØÎĵµ£º

asp.netÖг£ÓõÄ26¸öÓÅ»¯ÐÔÄܵķ½·¨

1.
Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯¡¡
¡¡
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection
Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø± ......

Asp.netÖж¯Ì¬ÔÚÖмÓÈëScrpit±êÇ©

Ðí¾ÃÒÔÇ°£¬Ð´¹ýһƪ¡¶asp.netÒ³Öж¯Ì¬¼ÓÈëÑùʽ±íÎļþ¡·£¬ºóÀ´·¢ÏÖÔÚʹÓÃʱÈç¹ûÿҳ¶¼Ð´Õâô¸öº¯ÊýÕæÊǺÜÂé·³£¬ÓÚÊÇ×Ô¼ºÐ´ÁËÒ»¸öPageµÄÅÉÉú¡£½«Õâ¸öº¯Êý¼ÓÁ˽øÈ¥¡£
      /**//// <summary>
    /// ×÷Õß ×Þ½¡
    ///  ......

WCFÖеķþÎñºÍASP.NET AJAXÖеÄWebService

WCFµÄ¼Ü¹¹£ºusing System.ServiceModel;
ÆõÔ¼:Contract
[ServiceContract]
public partial interface IContract
{
        [OperationContract]
        string DocumentWebHostUrl();
}
·þÎñ£ºService
[ServiceBehavior(IncludeException ......

ASP.NETÒ³Ãæˢз½·¨×ܽá

ÏÈ¿´¿´ASP.NETÒ³ÃæˢеÄʵÏÖ·½·¨£º
µÚÒ»£º
C# code
private void Button1_Click( object sender, System.EventArgs e )
{
Response.Redirect( Request.Url.ToString( ) );
}
µÚ¶þ£º
C# code
private void Button2_Click( object sender, System.EventArgs e )
{
Response.Write( " < script lang ......

ASP.NET FCKeditor Îı¾±à¼­Æ÷µÄʹÓÃ

ASP.NET FCKeditor Îı¾±à¼­Æ÷µÄʹÓà ¡¾×ª¡¿
ÏÂÔصØÖ·£ºhttp://www.fckeditor.net/download

FCKeditorʹÓÃ
Ò»¡¢ÅäÖÃ
1¡¢ÔÚwww.fckeditor.net
µã»÷Download£¬ÏÂÔØFCKEditor_2.5.1.zipºÍFCKEditor.Net(ASP.NET
Control to easily integrate FCKEditor on .Net Web pages.)
2¡¢Ð½¨Ò»ÏîÄ¿£¬±ÈÈç½ÐFCK¡£½âѹFCKEd ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ