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

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


Ïà¹ØÎĵµ£º

If Óï¾äÔÚASP.NETÖеÄÓ¦ÓÃ

If Óï¾äÔÚASP.NETÖеÄÓ¦ÓÃ
ÔÚASP.NETÖÐÓÐÐí¶àµØ·½ÒªÓõ½“ifÓï¾ä”£¬ÆäʵifÓï¾äÊÇC# ·ÖÖ§½á¹¹ ÖеÄÒ»ÖÖ¡£
·ÖÖ§½á¹¹ÊÇÓÐÌõ¼þµÄÖ´ÐдúÂ룬¿ØÖÆÏÂÒ»²½ÒªÖ´ÐÐÄÄЩ´úÂëµÄ¹ý³Ì¡£
·ÖÖ§½á¹¹£º
1£®ifÓï¾ä
2£®SwitchÓï¾ä
½ñÌìËù½²µÄÄÚÈÝΪif Óï¾ä£º
Ê×ÏÈC#ÖÐif½á¹¹µÄÓï·¨ÈçÏ£º
If (±í´ïʽ)
{
   ´úÂë¿ ......

ͨ¹ýASP.NET»ñÈ¡URLµØÖ·

Èç¹û²âÊÔµÄurlµØÖ·ÊÇhttp : //www.test.com/testweb/default.aspx, ½á¹ûÈçÏ£º
Request.ApplicationPath: /testweb
Request.CurrentExecutionFilePath: /testweb/default.aspx
Request.FilePath: /testweb/default.aspx
Request.Path: /testweb/default.aspx
Request.PhysicalApplicationPath: E:\WWW\testwebReq ......

GDI+Öз¢ÉúÒ»°ãÐÔ´íÎó(asp.net(C#))

×î½ü×ö±£´æÔ¶³ÌͼƬʱºò£¬¾ÍÔÚ±£´æµÄʱºò×ÜÊdzöÕâ¸ö´íÎó£¬ÍøÉÏgoogleÁËһȦ£¬¶¼ÊÇÔÙ˵ȨÏÞÎÊÌ⣬ÎÊÌâÎÒÊÇÓÃUÅÌ£¬ÄÄÀïÓÐʲôȨÏÞÎÊÌâ¡£
×îºóÎÞÒâÖз¢ÏÖÁËÎÊÌâËùÔÚ
±£´æµÄʱºò²»ÄÜÓÃÏà¶Ô·¾¶£¬Ò»¶¨ÒªÓÃserver.mappath()´¦Àíһϱ£´æµÄ·¾¶¡£¡£¡£°¦£¡ ......

ASP.NETÖÐÈçºÎʵÏÖFORMÈÏÖ¤µÇ¼

ÈçºÎÔËÓà Form ±íµ¥ÈÏÖ¤
ASP.NET µÄ°²È«ÈÏÖ¤£¬¹²ÓГWindows”“Form”“Passport”“None”ËÄÖÖÑé֤ģʽ¡£“Windows”Óë“None”ûÓÐÆðµ½±£»¤µÄ×÷Ó㬲»ÍƼöʹÓ㻓Passport”ÎÒÓÖûÓùý£¬°¦……ËùÒÔÎÒÖ»ºÃ½²½²“Form”ÈÏ ......

ASP.NET(C#)³£ÓôúÂë30Àý

1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
¡¡¡¡2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ