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

asp.netÒ³Ãæ´íÎó´¦Àí

asp.net´íÎó´¦Àí·½·¨ ´ó²¿·Ö¶¼Óà try catch
ÎÒÃÇÒ²¿ÉÒÔÔÚÒ³Ã涨Òå  protected void Page_Error(object sender, EventArgs e)·½·¨´¦Àí´íÎóÐÅÏ¢
{
 //ÏÈ»ñÈ¡µ±Ç°·¢ÉúÒì³£
  Exception ex = Server.GetLastError().GetBaseException();
        if (ex is ArgumentOutOfRangeException)
        {
   //dosomething   
        }
//¼ÇµÃÇå³ýÉÏÒ»¸öÒì³£ÐÅÏ¢
Server.ClearError();
}
¿ÉÒÔÔÚÈ«¾ÖÓ¦ÓóÌÐòÀàapplication_startʼþ дÈëÈÕÖ¾ ¼Ç¼µ±Ç°ÍøÕ¾Òì³£ÐÅÏ¢!


Ïà¹ØÎĵµ£º

ASP.NetÖÐÀûÓÃashxʵÏÖͼƬ·ÀµÁÁ´´úÂë

GET /Img.ashx?img=svn_work.gif HTTP/1.1
Accept: */*
Referer: http://www.svnhost.cn/
Accept-Language: zh-cn
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5 ......

ASP.NET MVCʹÓøÐÑÔ

Ç°ÑÔ
дÕâƪÎÄÕµÄÄ¿µÄ£¬ÊÇÏë×ܽáһЩ¶«Î÷£¬ÒÔ°ïÖúÅóÓÑÃǸüºÃµÄʹÓÃÕâ¸ö¿ò¼Ü¡£µ«ÊÇ£¬ÎÒÓÖ²»Ïñ°Ñ¹Ù·½ÁоٵÄÄÄЩÓÅÊÆ¡¢¹¦ÄÜ·­Òë¹ýÀ´ÁоÙÔÚÕâÀï¡£ËùÒÔ£¬ÎÒÏë¸É´àÎҾʹ¿´Ó¸öÈ˹۵ãÉ϶ÔÕâ¸ö¿ò¼ÜÆÀÂÛһϰɡ£ËµµÄ²»ºÃµÄ£¬²»¶ÔµÄ»¹ÇëÅúÆÀÖ¸Õý¡£
ASP.NET MVC——ÂÝÐý½ø²½µÄ²úÎï
¶ÔÓÚ΢ÈíΪʲôҪÍƳöASP.NET MVC£¬ÎÒÃÇ ......

Asp.Net onclientclick

ÔÚAsp.Net2.0ÖУ¬button¿Ø¼þÌí¼ÓÁËonclientclickÊôÐÔ£¬Í¨¹ýÕâ¸öÊôÐÔ¿ÉÒÔÏÈÖ´Ðпͻ§¶Ë½Å±¾£¬È»ºó¸ù¾Ý·µ»ØÖµÔÙÖ´ÐзþÎñÆ÷¶Ë½Å±¾¡£
ÔÚ¹¤×÷ÖÐÓöµ½ÕâÑùÒ»ÖÖ³¡¾°£ºµã»÷Ò»¸öbuttonºó£¬ÏÔʾһ¸ögif¶¯»­Í¼Æ¬£¬È»ºóÔÙÖ´ÐзþÎñÆ÷¶ËµÄ½Å±¾¡£gif¶¯»­Í¼Æ¬·Åµ½Ò»¸öÒþ²ØµÄdivÖУ¬µã»÷buttonÒÔºó£¬div»áÏÖÉí£¬ÏÔʾgifͼƬ¡£
ÎÊÌâÊÇ£ºÔÚfire ......

ASP.NET¿çÒ³Ãæ´«Öµ¼¼ÇÉ×ܽá

¹ØÓÚÒ³Ãæ´«ÖµµÄ·½·¨£¬Òý·¢Á˺ܶàÌÖÂÛ¡£¿´À´ÓкܶàÈ˹Ø×¢Õâ¸ö£¬ÎÒ¾ÍÎÒ¸öÈ˹۵ã×öÁËЩ×ܽᣬϣÍû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
1.  ʹÓÃQueryString±äÁ¿
QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µ ......

Ò»Ì×»ùÓÚasp.netµÄ°²È«Ð£Ñé»úÖÆÓ¦ÓÃÄ£ÐÍ £¡

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Syste ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ