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

ASP.NET MVCµÄÇëÇóÉúÃüÖÜÆÚ

ÉúÃüÖÜÆÚ²½Öè¸ÅÀÀ
µ±ÎÒÃǶÔASP.NET MVCÍøÕ¾·¢³öÒ»¸öÇëÇóµÄʱºò£¬»á·¢Éú5¸öÖ÷Òª²½Ö裺
²½Öè1£º´´½¨RouteTable
µ±ASP.NETÓ¦ÓóÌÐòµÚÒ»´ÎÆô¶¯µÄʱºò²Å»á·¢ÉúµÚÒ»²½¡£RouteTable°ÑURLÓ³Éäµ½Handler¡£
²½Öè2£ºUrlRoutingModuleÀ¹½ØÇëÇó
µÚ¶þ²½ÔÚÎÒÃÇ·¢ÆðÇëÇóµÄʱºò·¢Éú¡£UrlRoutingModuleÀ¹½ØÁËÿһ¸öÇëÇó²¢ÇÒ´´½¨ºÍÖ´ÐкÏÊʵÄHandler¡£
²½Öè3£ºÖ´ÐÐMvcHandler
MvcHandler´´½¨ÁË¿ØÖÆÆ÷£¬²¢ÇÒ°Ñ¿ØÖÆÆ÷´«ÈëControllerContext£¬È»ºóÖ´ÐпØÖÆÆ÷¡£
²½Öè4£ºÖ´ÐпØÖÆÆ÷
¿ØÖÆÆ÷¼ì²âÒªÖ´ÐеĿØÖÆÆ÷·½·¨£¬¹¹½¨²ÎÊýÁÐ±í²¢ÇÒÖ´Ðз½·¨¡£
²½Öè5£ºµ÷ÓÃRenderView·½·¨
´ó¶àÊýÇé¿öÏ£¬¿ØÖÆÆ÷·½·¨µ÷ÓÃRenderView()À´°ÑÄÚÈݳÊÏÖ»Øä¯ÀÀÆ÷¡£Controller.RenderView()·½·¨°ÑÕâ¸ö¹¤×÷ίÍиøij¸öViewEngineÀ´×ö¡£
ÏÖÔÚÈÃÎÒÃÇÀ´ÏêϸÑо¿Ã¿Ò»¸ö²½Ö裺
²½Öè1£º´´½¨RouteTable
µ±ÎÒÃÇÇëÇóÆÕͨASP.NETÓ¦ÓóÌÐòÒ³ÃæµÄʱºò£¬¶ÔÓÚÿһ¸öÒ³ÃæÇëÇ󶼻áÔÚ´ÅÅÌÉÏÓÐÕâÑùÒ»¸öÒ³Ãæ¡£ÀýÈ磬Èç¹ûÎÒÃÇÇëÇóÒ»¸ö½Ð×öSomePage.aspxµÄÒ³Ã棬ÔÚWEB·þÎñÆ÷ÉϾͻáÓÐÒ»¸ö½Ð×öSomePage.aspxµÄÒ³Ãæ¡£Èç¹ûûÓеĻ°£¬»áµÃµ½Ò»¸ö´íÎó¡£
´Ó¼¼Êõ½Ç¶È˵£¬ASP.NETÒ³Ãæ´ú±íÒ»¸öÀ࣬²¢ÇÒ²»ÊÇÆÕͨÀà¡£ASP.NETÒ³ÃæÊÇÒ»¸öHandler¡£»»¾ä»°Ëµ£¬ASP.NETÒ³ÃæʵÏÖÁËIhttpHandler½Ó¿Ú²¢ÇÒÓÐÒ»¸öProcessRequest()·½·¨ÓÃÓÚÔÚÇëÇóÒ³ÃæµÄʱºò½ÓÊÜÇëÇó¡£ProcessRequest()·½·¨¸ºÔðÉú³ÉÄÚÈݲ¢°ÑËü·¢»Øä¯ÀÀÆ÷¡£
Òò´Ë£¬ÆÕͨASP.NETÓ¦ÓóÌÐòµÄ¹¤×÷·½Ê½佷¼òµ¥Ã÷ÁË¡£ÎÒÃÇÇëÇóÒ³Ã棬ҳÃæÇëÇó¶ÔÓ¦´ÅÅÌÉϵÄij¸öÒ³Ã棬Õâ¸öÒ³ÃæÖ´ÐÐProcessRequest()·½·¨²¢°ÑÄÚÈÝ·¢»Øä¯ÀÀÆ÷¡£
ASP.NET MVCÓ¦ÓóÌÐò²»ÊÇÒÔÕâÖÖ·½Ê½¹¤×÷µÄ¡£µ±ÎÒÃÇÇëÇóÒ»¸öASP.NET MVCÓ¦ÓóÌÐòµÄÒ³Ãæʱ£¬ÔÚ´ÅÅÌÉϲ»´æÔÚ¶ÔÓ¦ÇëÇóµÄÒ³Ãæ¡£¶øÊÇ£¬ÇëÇó±»Â·ÓÉתµ½Ò»¸ö½Ð×ö¿ØÖÆÆ÷µÄÀàÉÏ¡£¿ØÖÆÆ÷¸ºÔðÉú³ÉÄÚÈݲ¢°ÑËü·¢»Øä¯ÀÀÆ÷¡£
µ±ÎÒÃÇдÆÕͨASP.NETÓ¦ÓóÌÐòµÄʱºò£¬»á´´½¨ºÜ¶àÒ³Ãæ¡£ÔÚURLºÍÒ³ÃæÖ®¼ä×ÜÊÇÒ»Ò»¶ÔÓ¦½øÐÐÓ³É䡣ÿһ¸öÒ³ÃæÇëÇó¶ÔÓ¦ÏàÓ¦µÄÒ³Ãæ¡£
Ïà·´£¬µ±ÎÒÃÇ´´½¨ASP.NET MVCÓ¦ÓóÌÐòµÄʱºò£¬´´½¨µÄÊÇÒ»Åú¿ØÖÆÆ÷¡£Ê¹ÓÿØÖÆÆ÷µÄÓÅÊÆÊÇ¿ÉÒÔÔÚURLºÍÒ³ÃæÖ®¼ä¿ÉÒÔÓжà¶ÔÒ»µÄÓ³Éä¡£ÀýÈ磬ËùÓÐÈçϵÄURL¶¼¿ÉÒÔÓ³Éäµ½ÏàͬµÄ¿ØÖÆÆ÷ÉÏ¡£
http://MySite/Products/1
http://MySite/Products/2
http://MySite/Products/3
ÕâЩURLÓ³Éäµ½Ò»¸ö¿ØÖÆÆ÷ÉÏ£¬Í¨¹ý´ÓURLÖÐÌáÈ¡²úÆ·IDÀ´ÏÔʾÕýÈ·µÄ²úÆ·¡£ÕâÖÖ¿ØÖÆÆ÷·½Ê½±È´«Í³µÄASP.NET·½Ê½¸üÁé»î¡£¿ØÖÆÆ÷·½Ê½¿ÉÒÔ²úÆ·¸üÏÔ¶øÒ×¼ûµÄ


Ïà¹ØÎĵµ£º

asp.net´íÎó´¦ÀíÀà+SESSIONÀà ÊÕ²Ø


 *  
 
 * ʹÓÃ˵Ã÷£º1. ÔÚApplication_Start()ÖÐÆô¶¯¶¨Ê±Æ÷(¶¨Ê±Çå¿Õ´íÎóÐÅÏ¢)£ºErrorManager.Instance.Start()£¬  
 
 *              ĬÈÏ12СʱÔËÐÐÒ»´Î£¬»òÓÃErrorManager.Instance.SetTim ......

asp.net DataGridViewµ¼³öµ½ExcelµÄÈý¸ö·½·¨

http://hi.baidu.com/%E5%EB%B3%DF%C8%CB%C9%FA/blog/item/58a1540bbf0bb437b1351d9a.html
#region DataGridViewÊý¾ÝÏÔʾµ½Excel
/// <summary>
/// ´ò¿ªExcel²¢½«DataGridView¿Ø¼þÖÐÊý¾Ýµ¼³öµ½Excel
/// </summary>
/// <param name="dgv">DataGridView¶ÔÏó </param>
/// <param na ......

ASP.NET 2.0Á¬½ÓOracle 10g

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OracleClient;//ÒýÈëÃüÃû¿Õ¼ä ......

OrcaleÓëAsp.netµÄ¶Ë¿Ú³åÍ»¡¾Ä§ÀÖÊÓƵ www.mldn.cn¡¿


Ò³ÃæµØÖ·ÊÇ:http://www.mldn.cn/articleview/2007-2-6/article_view_1400.htm
Web·þÎñµÄinetinfo.exeÓëOracleµÄApache.exe½ø³ÌËùÕ¼ÓõĶ˿ڶ¼°üÀ¨80¶Ë¿Ú¡£
Èç¹ûÓû§ÊÇÔÚ°²×°ÁËOracleÖ®ºó£¬ÔÙʹÓÃ.NET´´½¨ASP.NETÓ¦ÓóÌÐò³öÏÖÏÂÃæÇé¿öµÄ´íÎó£º
VS.NET¼ì²âµ½web·þÎñÆ÷ÔËÐеÄÊÇASP.NET 1.0°æ£¬Òª´´½¨»ò´ò¿ªµÄÓ¦ÓóÌÐò¿ÉÒ ......

ASP.NETÅäÖÃOracleµÄÏà¹Ø˵Ã÷

²        Oracle9iµÄ°²×°£¬Çë²ÎÕÕ¹Ù·½µÄ°²×°ËµÃ÷¡£
²        Oracle9i°²×°³É¹¦ÒÔºó£¬Ê¹ÓùÜÀíÔ±£¨Óû§Ãû£ºsys¡¢ÃÜÂ룺sys£©µÄÉí·ÝµÇ¼½øÈ¥£¬´´½¨Ò»¸öÓû§ddymis£¬ÃÜÂ룺ddymis,½ÇɫĬÈϸ³Óèdba¡£
²      ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ