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

asp.net Ò³Ãæ»ùÀàÒì³£²¶»ñ

ÔÚÒ³Ãæ»ùÀàÖÐÔö¼ÓÒÔÏ·½·¨,Äܹ»»ñµÃ±Èoverride void OnError(EventArgs e)¸ü¸ßµÄ´íÎó´¦ÀíÓÅÏȼ¶ºÍ¿ØÖÆȨ,override void OnError(EventArgs e)·½Ê½ÖÐOnError±»Ö´ÐÐÍê±Ïºó»ùÀà(Page)µÄOnErrorÔÚºóÐø±»µ÷ÓÃ,µ±Ç°Ò³ÃæË漴ɥʧ¿ØÖÆȨ.    
protected void Page_Error(object sender, EventArgs e)
{
            Exception expt = Server.GetLastError();           
            Context.ClearError();
            SystemLogic.WriteLog(SystemLogic.CurrentUser, this, "Ò³Ãæ¼ÓÔØ´íÎó", expt.Message);
            Response.Clear();
            Response.Write("Ò³Ãæ¼ÓÔØ´íÎó");
            Response.Flush();
            Response.End();
}


Ïà¹ØÎĵµ£º

asp.netÃæÊÔÌâ(8)

121.ÃèÊöÒ»ÏÂc#ÖÐË÷ÒýÆ÷µÄʵÏÖ¹ý³Ì£¬ÊÇ·ñÖ»Äܸù¾ÝÊý×Ö½øÐÐË÷Òý£¿    
 
´ð£º²»ÊÇ¡£¿ÉÒÔÓÃÈÎÒâÀàÐÍ¡£   
 
 
 
122.ÔÚc££ÖУ¬string str = null Óë string str = " " Ç뾡Á¿Ê¹ÓÃÎÄ×Ö»òͼÏó˵Ã÷ÆäÖеÄÇø±ð¡£   
 
´ð£ºnullÊÇÃ»Ó ......

Ò³ÃæˢУ¨Asp.net£©

[·ÖÏí]ASP.NETË¢ÐÂÒ³ÃæµÄÁùÖÖ·½·¨
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e )  
{
     Response.Redirect( Request.Url.ToString( ) );
}
µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e )  
{
 &n ......

ASP.NETÎļþÀ©Õ¹Ãû

.ascx  webÓû§¿Ø¼þ
 .asmx  web·þÎñ
 .asax  È«¾ÖÓ¦ÓóÌÐòÀà
 .sitemap  ÍøÕ¾µØͼ
 .htm  HTMLÒ³
 .xml  XMLÒ³
 .master  ĸ°æÒ³
 .config  webÅäÖÃÎļþ
 .skin  Íâ¹ÛÎļþ
 .css  Ñùʽ±íÎļþ ......

ÓйØASP.NETÖеÄUpdateProgress¿Ø¼þµÄʹÓÃ

 Ç°Ì¨´úÂë
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateProgress.aspx.cs" Inherits="UpdateProgress" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" Ta ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ