ASP.NET´¦Àí³ÌÐòºÍÄ£¿é£¨Ò»£©
ASP.NET´¦Àí³ÌÐòºÍÄ£¿é
ASP.NET HTTP ´¦Àí³ÌÐò(Handler)ÊÇÏìÓ¦¶Ô ASP.NET Web Ó¦ÓóÌÐòµÄÇëÇó¶øÔËÐеijÌÐò
Èç´¦Àí *.aspxÎļþµÄASP.NET´¦Àí³ÌÐò,µ±Óû§ÇëÇó *.aspxÎļþʱ¾Íͨ¹ýÏàÓ¦µÄ´¦Àí³ÌÐò.
ÕâÊÇASP.NETÄÚÖõĴ¦Àí³ÌÐò£¬Ä¬ÈÏ´¦Àí*.aspxÎļþµÄÊÇASP.NETµÄÒ³´¦Àí³ÌÐò
(ÓÃÓÚËùÓÐ ASP.NET Ò³µÄĬÈÏ HTTP ´¦Àí³ÌÐò.)
ÄÚÖô¦Àí³ÌÐò»¹ÓÐ:
´¦Àí*asmxÎļþµÄWeb·þÎñ´¦Àí³ÌÐòÔÚ(ASP.NET ÖÐ×÷Ϊ
.asmx Îļþ´´½¨µÄ Web ·þÎñÒ³µÄĬÈÏ HTTP ´¦Àí³ÌÐò)
´¦ÀíashxÎļþµÄ·ºÐÍ´¦Àí³ÌÐò(²»º¬ UI ºÍ°üÀ¨ @ WebHandler Ö¸ÁîµÄËùÓÐ
Web ´¦Àí³ÌÐòµÄĬÈÏ HTTP ´¦Àí³ÌÐò)
ѧϰASP.NET´¦Àí³ÌÐò±à³ÌµÄÄ¿µÄ:ÉîÈëÁ˽âASP.NET·þÎñÆ÷ÏàÓ¦¿Í»§¶ËµÄ¹ý³Ì,
´´½¨×Ô¼ºµÄASP.NET´¦Àí³ÌÐòÀ´Ìá¸ßÍøÕ¾µÄ½¡×³ÐÔ(±ÈÈç״̬¡¢Éí·ÝÑéÖ¤µÈ)¡£
´´½¨HTTP´¦Àí³ÌÐò²½Ö裺
ʵÏÖ IHttpHandler½Ó¿Ú¡£
ʵÏÖ ProcessRequest·½·¨¡£
ÔÚ Web.config ÖÐ×¢²á¸Ã´¦Àí³ÌÐò¡£
Òª´´½¨ASP.NET´¦Àí³ÌÐòҪʵÏÖ IHttpHander½Ó¿Ú(System.WebÃüÃû¿Õ¼äÏÂ)
IHttpHander½Ó¿ÚÖÐÖ»ÓÐÒ»¸ö·½·¨ void ProcessRequest(HttpContext context)
¶øÇÒ»¹ÓÐÒ»¸öÊôÐÔ IsReusable »ñÈ¡Ò»
Ïà¹ØÎĵµ£º
String.IndexOf ·½·¨ (value, [startIndex], [count])
¡¡¡¡±¨¸æÖ¸¶¨×Ö·ûÔÚ´ËʵÀýÖеĵÚÒ»¸öÆ¥ÅäÏîµÄË÷Òý¡£ËÑË÷´ÓÖ¸¶¨×Ö·ûλÖÿªÊ¼£¬²¢¼ì²éÖ¸¶¨ÊýÁ¿µÄ×Ö·ûλÖá£
¡¡¡¡²ÎÊý
¡¡¡¡value
¡¡¡¡Òª²éÕÒµÄ Unicode ×Ö·û¡£ ¶Ô value µÄËÑË÷Çø·Ö´óСд¡£
¡¡¡¡startIndex£¨Int32£©
¡¡¡¡¿ÉÑ¡ÏËÑË÷ÆðʼλÖᣲ»ÉèÖÃÔò´Ó0¿ªÊ¼¡£
......
ScriptManager.RegisterStartupScript(p1, this.GetType(), "click", "alert('ok')", true);//p1ÊÇupdatepanelµÄid
ScriptManager.RegisterStartupScript(p1, this.GetType(), "click", "alert('ok')", true);//p1ÊÇupdatepanelµÄid
......
̸̸ASP.NETÖеēµØÖ·¾ö¶¨ÄÚÈÝ”ÎÊÌâ
ʲôÊǵØÖ·¾ö¶¨ÄÚÈÝ£¿
ÄãÔÚÍøÉϹ䣬¿´µ½Ò»¸öÓÐȤµÄÒ³Ã棬ÓÚÊÇÄã°ÑµØÖ·À¸ÀïµÄÄÚÈݸ´ÖÆÏÂÀ´£¬·¢¸øÕýÔÚ¸úÄãÁÄÌìµÄÍøÓÑ£º“¿´¿´Õâ¸öÒ³Ã棬ÓÐȤ¼«ÁË”£¬ÄãµÄÅóÓÑ´ò¿ªÄã·¢µÄÁ´½Ó£¬¿´µ½µÄÄÚÈÝÓ¦¸ÃºÍÄãÕýÔÚ¿´µÄÒ»Ñù¡£Ò²¼´£¬Ò³ÃæµÄÖ÷ÒªÄÚÈÝÓ¦µ±È¡¾öÓÚµØÖ·À¸ÖеĵØÖ·¡£µ«Ô ......
//ʵÀý»¯Ò»¸öSmtpClientsmtp.DeliveryMethod = SmtpDeliveryMethod.Network;
SmtpClient smtp = new SmtpClient();
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
//½«smtpµÄ³öÕ¾·½Ê½ÉèΪ Networksmtp.EnableSsl = false;
//smtp·þÎñÆ÷ÊÇ·ñÆôÓÃSSL¼ÓÃÜ
smtp ......
asp.net ¶ÔxmlÎļþµÄ¶Áд,Ìí¼Ó,ÐÞ¸Ä,ɾ³ý²Ù×÷
ÏÂÃæÓдúÂëµ÷ÊÔÕýÈ·
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using&nb ......