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

ASP.NET MVC ÈëÃÅ4¡¢ControllerÓëAction

±¾ÏµÁÐÎÄÕ»ùÓÚASP.NET MVC Preview5.
ControllerÊÇMVCÖбȽÏÖØÒªµÄÒ»²¿·Ö¡£¼¸ºõËùÓеÄÒµÎñÂß¼­¶¼ÊÇÔÚÕâÀï½øÐд¦ÀíµÄ£¬²¢ÇÒ´ÓModelÖÐÈ¡³öÊý¾Ý¡£ÔÚASP.NET
MVC
Preview5ÖУ¬½«Ô­À´µÄControllerÀàÒ»·ÖΪ¶þ£¬·ÖΪÁËControllerÀàºÍControllerBaseÀà¡£ControllerÀà
¼Ì³Ð×ÔControllerBaseÀ࣬¶øControllerBaseʵÏÖÊÇÁËIController½Ó¿Ú¡£

ControllerBaseʵÏÖÁËIController½Ó¿ÚµÄExecute·½·¨£¬ÔÚRouteÆ¥Åäµ½ControllerÖ®ºó£¬¾Í»áµ÷ÓÃ
Execute·½·¨À´½øÈëControllerµÄ´¦Àí¡£ÕâÀﻹ¶¨ÒåÁËÒ»¸ö³éÏóµÄ·½·¨ExecuteCore·½·¨£¬¸Ã·½·¨»áÔÚExecute·½·¨µÄ×îºó±»µ÷
Óá£ControllerBase»¹¶¨ÒåÁËÈý¸öºËÐĵÄÊôÐÔ¡£ÎÒÃÇÔÚºóÃæ»áÏêϸÌÖÂÛTempDataºÍViewData¡£
ControllerÀà³ýÁ˼̳Ð×ÔControllerBaseÀàÒÔÍ⣬»¹ÊµÏÖÁ˺ü¸¸öFilter½Ó¿Ú£¬FilterÎÒÃÇÔÚºóÃæÔÙÏêϸÌÖÂÛ¡£
public
 
abstract
 
class
Controller :
ControllerBase, IActionFilter, IAuthorizationFilter, IDisposable,
IExceptionFilter, IResultFilter{ }
ControllerÀ໹¶¨ÒåºÜ¶àÓÐÓõķ½·¨£¬ÎÒÃÇн¨µÄController¶¼±ØÐë¼Ì³Ð×ÔÕâ¸öControllerÀà¡£ÀýÈçÎÒÃÇн¨Ò»¸ö
AdminController£º
public
 
class
AdminController : Controller
{
}
Action·½·¨
ÏÂÃæ̸һÏÂÔÚControllerÖбȽÏÖØÒªµÄAction·½·¨¡£ÔÚASP.NET
MVCÖÐURL¶¼ÊÇÓ³Éäµ½ControllerÖеÄij¸öActionÖУ¬È»ºóÓÉÆ¥ÅäµÄActionÀ´´¦ÀíÎÒÃǵÄÒµÎñÂß¼­²¢·µ»ØviewµÄ¡£
ControllerÖеÄpublicµÄ·½·¨¶¼±»µ±×÷ÊÇAction·½·¨¡£Action·½·¨Í¨³£·µ»ØÒ»¸öActionResultµÄ½á¹û¡£ÀýÈçÎÒÃÇ
ΪǰÃæµÄAdminController¶¨ÒåÒ»¸öSettingµÄAction·½·¨£¬ÓÃÓÚÉèÖÃBlogµÄһЩ»ù±¾²ÎÊý£º
public
 
class
AdminController : Controller
{
   
public
ActionResult Setting()
    {
       
throw
 
new
NotImplementedException();
    }
}
ĬÈÏÇé¿öÏ£¬Action·½·¨µÄ·½·¨Ãû¾ÍÊÇÕâ¸öActionµÄActionÃû(ActionÃûÖ¸µÄÊÇRouteÖÐÆ¥ÅäAction·½·¨µÄURLµÄÄÇ
²¿·Ö¡£ÀýÈçurl£ºHome/Index£¬ÆäÖÐIndex¾ÍÊÇActionÃû)¡£ÕâÀïΪʲôҪÌáµ½Õâ¸öActionÃûÄØ£¿Ó¦ÎªActionÃûÊÇ¿ÉÒÔ¶¨Òå
µÄ£¬Ê¹ÓÃActionNameAttributeÀ´¶¨Òå¡£Çë¿´ÏÂÃæµÄʾÀý£º
public
ActionResult Setting()
{
   
throw
 
new
NotImplemen


Ïà¹ØÎĵµ£º

asp.netÁбíÊý¾ÝÏÔʾ+·ÖÒ³

һλCSDNÍøÓÑ·ÅÔÚÏÂÔØÀïµÄ
/////////////////
/// <summary>
/// ·ÖÒ³º¯Êý
/// </summary>
/// <param name="dtRecord">Êý¾ÝÔ´</param>
private void SplitPage(DataTable dtRecord) ......

ASP.NETÖÐMD5ºÍSHA1¼ÓÃܵļ¸ÖÖ·½·¨

MD5µÄÈ«³ÆÊÇMessage-Digest Algorithm 5£¨ÐÅÏ¢-ÕªÒªËã·¨£©£¬ÔÚ90Äê´ú³õÓÉMit Laboratory for Computer ScienceºÍRsa data security incµÄRonald l. rivest¿ª·¢³öÀ´£¬¾­md2¡¢md3ºÍmd4·¢Õ¹¶øÀ´¡£ËüµÄ×÷ÓÃÊÇÈôóÈÝÁ¿ÐÅÏ¢ÔÚÓÃÊý×ÖÇ©ÃûÈí¼þÇ©Êð˽ÈËÃܳ×Ç°±»"ѹËõ"³ÉÒ»ÖÖ±£Ãܵĸñʽ£¨¾ÍÊÇ°ÑÒ»¸öÈÎÒⳤ¶ÈµÄ×Ö½Ú´®±ä»»³ÉÒ»¶¨³¤µÄ´óÕ ......

¹ØÓÚasp.netÒ³Ãæϸ÷ÖÖÍøÒ³±à¼­Æ÷×ܽá


×î½üÐèÒªÒ»¸öasp.netϵÄÍøÒ³±à¼­Æ÷£¬¾­¹ý¼¸ÌìµÄ²éÕÒÓëÕûÀí£¬ÖÕÓÚ½«Ö÷ÒªµÄ¼¸¸ö±à¼­Æ÷ÕÒÆ룬×Ô¼ºÓùýºó£¬×ÜÖÕһϡ£
1¡¢ Cuteeditordemo£º¹¦ÄÜ×îÇ¿´óµÄÓ¦¸ÃÊÇÕâ¸ö±à¼­Æ÷ÁË£¬µ«ÊÇÕâ¸ö±à¼­Æ÷±È½ÏµÄ´ó£¬ÓÐ5MB¶à£¬Í¬Ê±ÔËÐÐÆðÀ´Ëٶȷ½ÃæÒ²±È½ÏµÄÂý¡£ÔÚʵ¼ÊµÄʹÓÃÖУ¬¹úÄÚʹÓõÄÈ˲¢²»¶à£¬¶øÇÒÊÇÓ¢ÎÄ°æµÄ¡£Ç¿ÄÜÊÇ×îÇ¿´ó£¬µ ......

asp.netѧϰ²½Öè


µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ¡£NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó£¨OO£©ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ²»ÏÂÈ¥£¡
µÚ¶þ²½¡¡¶Ô¡£NET FrameworkÀà¿âÓÐÒ»¶¨µÄÁ˽⠿ÉÒÔͨ¹ý¿ª·¢Windows FormÓ¦ÓóÌÐòÀ´Ñ§Ï°¡£NET Framework¡£ASP.NETÊǽ¨¹¹ÔÚ¡£NET FrameworkÖ® ......

ASP.NET MVC ÈëÃÅ2¡¢ÏîÄ¿µÄĿ¼½á¹¹ÓëºËÐĵÄDLL



 
ASP.NET MVC ÈëÃÅ2¡¢ÏîÄ¿µÄĿ¼½á¹¹ÓëºËÐĵÄDLL
ÊÕ²Ø



< type="text/javascript">
document.body.oncopy = function() {
if (window.clipb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ