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

ASP.NET×Ô¶¨Òå´íÎó´¦ÀíÒ³ÃæµÄÌí¼Ó

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>");           Response.Write("HelpLink:" + erroy.HelpLink + "< br>");           Response.Write("Source:" + erroy.Source + "< br>");           Response.Write("TargetSite:" + erroy.TargetSite + "< br>");           Response.Write("InnerException:" + erroy.InnerException + "< br>");           Response.Write("StackTrace:" + erroy.StackTrace + "< br>");           Response.Write("GetHtmlErrorMessage:" + erroy.GetHtmlErrorMessage() + "< br>");           Response.Write("erroy.GetHttpCode().ToString():" + erroy.GetHttpCode().ToString() + "< br>");           Response.Write("erroy.Data.ToString()::" + erroy.Data.ToString() + "< br>");       }
ÕâÖÖ·½·¨²»


Ïà¹ØÎĵµ£º

ASP.NETʵÏÖÓû§µÚ¶þ´Î·ÃÎÊÍøÕ¾²»ÓÃÌá½»ÐÅÏ¢

 ÔÚÎÒÃÇ·ÃÎÊÒ»Ð©ÍøÕ¾µÄʱºò»áÓÐÒ»¸ö¸´Ñ¡¿òÉÏÃæÐ´×Å“Á½¸öÐÇÆÚÄÚ£¬²»ÔÙÒªÇóÊäÈëÃÜÂ딵ÄÀàËÆÄÚÈÝ£¬Èç¹û¹´Ñ¡ÉÏ£¬µÈÓû§Ï´εǼµÄʱºò¾Í¿ÉÒÔ²»ÓÃÔÙÊäÈëÃÜÂëÁË£¬Ö±µ½Á½¸öÐÇÆÚÒÔºó¡£½ñÌìС±à¾ÍºÍ´ó¼ÒÀ´ÊµÏÖÕâ¸ö¼¼Êõµã£ºµ±Óû§µÇ¼ʱ£¬Èç¹ûÑ¡ÖГÁ½¸öÐÇÆÚÄÚ£¬²»ÔÙÒªÇóÊäÈëÃÜÂ딸´Ñ¡¿ò£¬ÔòÔÚÁ½¸öÐÇÆÚÄÚ ......

ASP.NETÈý²ã½á¹¹ÓëMVCģʽµÄÇø±ð

 ÕâÁ½Õß±¾Éí½²µÄÊDz»Í¬·½ÏòÓë½Ç¶ÈµÄÎÊÌ⣬ÔÚʵ¼ÊÓ¦ÓÃÖÐËûÃǵÄÈ·´æÔÚһЩÏàËÆµÄÌØµã£¬ÔںܶàÊé¼®ÖÐҲûÓÐÉîÈë½²½â£¬ÒÔÖÂÓÚÔì³ÉÀ§»ó£¬ÎªÁ˸üºÃµÄÀí½âËûÃÇ£¬ÄǾÍÀ´ËµËµÇø±ð°É¡£
¡¡¡¡Ê×ÏÈN²ã½á¹¹ÊÇÒ»ÖÖÈí¼þ³éÏóµÄ²ã´Î½á¹¹£¬ÊǶԸ´ÔÓÈí¼þµÄÒ»ÖÖ×ÝÏòÇз֣¬Ã¿Ò»²ã´ÎÖÐÍê³ÉͬһÀàÐ͵IJÙ×÷£¬ÒԱ㽫¸÷ÖÖ´úÂëÒÔÆäÍê³ÉµÄʹÃü×÷ÎªÒ ......

ASP.NET

      ʹÓà ASP.NET °´Å¥ Web ·þÎñÆ÷¿Ø¼þ¿ÉʹÓû§Äܹ»½«Ò³·¢Ë͵½·þÎñÆ÷²¢´¥·¢Ò³ÉϵÄʼþ¡£
Ò»¡¢±³¾°
¿ÉʹÓà Button Web ·þÎñÆ÷¿Ø¼þΪÓû§ÌṩÏò·þÎñÆ÷·¢ËÍÒ³µÄÄÜÁ¦¡£¸Ã¿Ø¼þ»áÔÚ·þÎñÆ÷´úÂëÖд¥·¢Ò»¸öʼþ£¬Äú¿ÉÒÔ´¦Àí¸ÃʼþÀ´ÏìÓ¦»Ø·¢¡£ÀýÈ磬Óû§¿ÉÒÔָʾÒÑÍê³É±íµ¥»òÏ£ÍûÖ´ÐÐÌØ¶¨µÄÃüÁî¡£
AS ......

ASP.NETÉú³ÉËæ»úÃÜÂë

 ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
publicstaticstringMakePassword(st ......

Asp.net ³¤ÎÄÕ·ÖÒ³

public string NoHTML(string Htmlstring) //È¥³ýHTML±ê¼Ç
{
//ɾ³ý½Å±¾
Htmlstring = Regex.Replace(Htmlstring, @" <script[^>]*?>.*? </script>", "", RegexOptions.IgnoreCase);
//ɾ³ýHTML
Htmlstring = Regex.Replace(Htmlstring, @" <(.[^>]*)>", "", RegexOptions.IgnoreCase); ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ