ASP.NET MVCÀ©Õ¹¿â
ºÜ¶àͬѧ¶¼¶Á¹ýÕâƪÎÄÕ塃 ASP.NET MVCÖÐÄã±ØÐëÖªµÀµÄ13¸öÀ©Õ¹µã£¬½ñÌì¸ø´ó¼Ò½éÉÜÒ»¸öASP.NET MVCµÄÀ©Õ¹¿â£¬Ö÷Òª¾ÍÊÇÕë¶ÔÕâЩÀ©Õ¹µã½øÐС£Õâ¸öÏîÄ¿µÄºËÐÄÊÇIOCÈÝÆ÷£¬°üÀ¨Ninject, StructureMap, Unity £¬WindsorºÍAutofac¡£Èç¹ûÄãºÍÎÒÒ»Ñùϲ»¶Ê¹ÓÃIOC£¬Õâ¸ö¿âÖµµÃÄã¹Ø×¢£¬ÕâЩIOCÎÒ¶¼ÓùýÁË£¬ÏÖÔڱȽÏϲ»¶Ê¹ÓÃAutofac¡£
ASP.NET MVCÀ©Õ¹¿âµÄÍøÕ¾µØÖ·ÊÇhttp://www.mvcextension.com/£¬»ùÓÚMs-PLÐÒéµÄ¿ªÔ´¿â£¬5.11·¢²¼ÁË1.0°æ±¾£¬ÏÂÃæ½éÉÜÒ»ÏÂËûµÄÌØÐÔ£º
Õâ¸ö¿âµÄºËÐÄÊÇIOC£¬È´¿ÉÒÔÈÃÄãµÄ´úÂëºÍIOCÎ޹أ¬ÄãµÄ´úÂëÈ´¿ÉÒÔʹÓÃÇ¿´óµÄIOC¡£
¶à¸öIOC¿âµÄÊÊÅäÆ÷£ºËùÓÐ.NETÉÏÁ÷ÐеÄIOCÈÝÆ÷¶¼ÓÉÊÊÅäÆ÷¡£
Bootstrapping£º²»ÓÃÔÚ¸÷¸öÏîÄ¿ÖÐдÀàËƵĴúÂëÁË£¬´¦ÀíÄãµÄController/Controller Factory/Model Binders/View Engines/Action Filters/Custom DependenciesµÄ×¢²á¡£
PerRequestTask£ºÀàËÆÓÚHttpModule´¦Àí×Ô¶¨ÒåµÄÒµÎñÂß¼£¬»¹¿ÉÒÔ¿ØÖÆÖ´ÐеÄ˳Ðò¡£
Model Binder£ºÍ¨¹ý¹¹Ô캯Êý×¢ÈëÄãµÄModel BinderµÄ×Ô¶¨ÒåµÄÒÀÀµ¡£
Action Filter Fluent Registration£ºÖ§³Ö¹¹Ô캯Êý·½Ê½×¢ÈëÁ÷¹áµÄ×¢²áÄãµÄAction Filter¡£
ModelMetadata Fluent Configuration£ºÖ§³Ö¸´ºÏModelMetadata provider, ĬÈÏʹÓÃDataAnnotationsModelMetadataProvider,»¹Ö§³ÖEF Code First ºÍ Fluent NHibernate.
¸÷ÖÖActionResults£º°üº¬Í¨ÓõÄActionResults£¬ÆäÖаüÀ¨XmlResult£¬ExtendedJsonResult£¨Ö§³ÖJsonConverters£©£¬Adaptive PRG (PostRedirectGet) results¡£
¸÷ÖÖͨÓõÄRoute ±äÁ¿£º°üÀ¨Range, Positive Int/Long, Guid, Enum, RegExµÈµÈ
¸÷ÖÖÆäËûµÄʵÓ÷½·¨ºÍÖúÊÖÀà¡£
Õâ¸ö¿âµÄʵ¼ÊÓ¦ÓõÄÀý×Ó¿ÉÒÔ¿´Õâ¸öÏîÄ¿Shrinkr£¬×÷ÕßÔÚ²©¿ÍÉÏÓм¸ÆªÎÄÕ½éÉÜ£º
MvcExtensions – Bootstrapping Wednesday, May 12, 2010
Announcing the RTM of MvcExtensions (aka System.Web.Mvc.Extensibility) Tuesday, May 11, 2010
Ïà¹ØÎĵµ£º
¾³£ÐèÒªÔÚÊý¾Ý¿âÓëExeclÖ®¼ä»¥µ¼Êý¾Ý¡£netʱ´ú£¬ADO.NET¿ÉÒÔʹÓÃʹÓÃMicrosoft.Jet.OleDb·ÃÎÊ·ÃÎÊExcel£¬ÍøÉÏÒѾÓкܶàÀàËƵÄ×ÊÔ´£¬×îµäÐÍÒ²ÊÇ×î¼òµ¥µÄ¿ÉÄÜÈçÏ£º£¨asp.net»·¾³£©
// Á¬½Ó×Ö·û´®
......
ÌâÍâ»°£ºÈ¥ÄêÖÁ½ñÄêÒÔÀ´£¬Â½Ðøд¹ýһЩԴ´µÄÎÄÕÂÁË£¬ºÜ¶àÊǶÔÔÀ´Ëù×öÏîÄ¿µÄ×ܽᡣËùÒÔ²¢²»ÊǺÜϵͳºÜÈ«Ã棬¶¼ÊÇÕë¶Ôij¸ö֪ʶµã»òÕßij¸ö¾ßÌåÓ¦ÓÃдµÄ£¬ÓÐЩÅóÓѽ¨ÒéÎÒ°Ñ×Ô¼ºµÄÌå»áд³ÉÒ»¸öϵͳµÄ£¬Õâ´ÎËãÊÇÒ»¸ö³¢ÊÔ°É£¬Ð´µÃ²»ºÃµÄµØ·½Çë´ó¼Ò¾¡Á¿Å×Î÷ºìÊÁ²»Òª¶ª×©Í·¡£
Ö®ËùÒÔ°ÑÕâ¸öϵÁнÐ×ö¡¶asp.netÒ¹»°¡·£¬ÊÇÓÐһЩÔÒ ......
ÓÃASP.NETÓëSQL SERVER¿ÉÊÇÔµ·Ý×îºÃÁË£¬ÉÔ´óµÄ³ÌÐòÒ»°ãµÚÒ»ÏÈ¿¼ÂǵÄÊÇSQL SERVER£¬Ö»ÊÇһЩºÜ¿¼ÂǾ¼ÃµÄ²ÅʹÓÃACCESSµÈÁË¡£ÓÃSQL SERVER£¬ÎªÁËʹÊý¾Ý¿âµÄЧÂʸüºÃ£¬Ò»°ã¶¼»á²ÅÈ¡´æ´¢¹ý³Ì£¬Òò´æ´¢¹ý³ÌÖ´ÐÐËٶȿ죬²¢ÇÒ¿ÉÒÔʵÏÖһЩ¸ß¼¶µÄ²éѯµÈ¹¦ÄÜ¡£±ÈÈç´«ÈëһЩÊý¾Ý²ÎÊý£¬µ«Ö´ÐеÄSQL¹ý³Ì¿ÉÄܲ»Í¬µÈ¡£
¡¡¡¡ÏÂÃæ¾ÍÀ´¸öÀý× ......
public static void SetEnterControl(System.Web.UI.Control Ctrl)
{
Page mPage = Ctrl.Page;
string mScript;
mScript = @"<script language=""jav ......