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

ASP.NET MVC ¼ò½é

Õâ¸öÊÇÔÚÍøÉÏÕÒµÄÒ»¸ö¹ØÓÚASP.NET MVC µÄ¶¨Ò壬ÎÒ¾õµÃÒѾ­½âÊ͵Ĺ»ºÃÁË£¬ËùÒԾͽè¹ýÀ´ÓÃÓÃÁË £¬ºÇºÇ
Ï£ÍûÓÐÐÄѧϰASP.NET MVC µÄÅóÓÑÏÈÊìϤ¶¨Ò壬ÔÚºóÐøµÄÎÄÕÂÖлá¸üÇáËɵÄѧϰASP.NET MVC
ÏÂÃæÎÒÃÇÒ»Æð̤ÉÏASP.NET MVC Ö®Âðɣ¬Ö»ÒªÓкãÐĺÍÒãÁ¦£¬×£Ñ§ÕßÃÇÂÃ;Óä¿ì£¡
The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller. The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating MVC-based Web applications. The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication. The MVC framework is defined in the System.Web.Mvc namespace and is a fundamental, supported part of the System.Web namespace.
MVC is a standard design pattern that many developers are familiar with. Some types of Web applications will benefit from the MVC framework. Others will continue to use the traditional ASP.NET application pattern that is based on Web Forms and postbacks. Other types of Web applications will combine the two approaches; neither approach excludes the other.
MVC¼Ü¹¹Ä£Ê½½«Ó¦ÓóÌÐò·ÖΪģÐÍ-ÊÓͼ-¿ØÖÆÆ÷Èý¸öÖ÷Òª×éÖ¯²¿·Ö£¬ASP.NET MVC¿ò¼ÜÌṩһÖÖ¿ÉÒÔ´úÌæASP.NET Web FormsģʽÀ´´´½¨»ùÓÚMVCµÄÓ¦ÓóÌÐò£¬ASP.NET MVCÊÇÇáÁ¿¼¶µÄ£¬¸ß¿É²âÊԵĿò¼Ü£¬²¢ÇÒ¿ÉÒÔ½áºÏÏÖÓеÄASP.NETµÄÌØÐÔÈçĸ°å¡¢»ùÓÚmembershipµÄÉí·ÝÑéÖ¤£¬MVC¿ò¼Ü»ù´¡¶¨ÒåÔÚSystem.Web.MvcÃüÃû¿Õ¼äÖеģ¬³ÉΪSystem.WebÃüÃû¿Õ¼äµÄÒ»²¿·Ö¡£
MVC×÷Ϊһ¸ö±ê×¼µÄÉè¼Æģʽ±»¹ã´óµÄ¿ª·¢ÈËÔ±ËùÊìÖª¡£Ä³Ð©ÀàÐ͵ÄWebÓ¦ÓóÌÐò½«ÊÜÒæÓÚMVC framework¡£ÆäËüÀàÐ͵ÄÓ¦ÓóÌÐò¿ÉÒÔ¼ÌÐøʹÓô«Í³µÄ»ùÓÚPostbacksµÄWeb formsģʽ½øÐÐASP.NET¿ª·¢£¬Ò²¿ÉÒÔ½áºÏÕâÁ½ÖÖģʽ£¬ËüÃÇÊDz¢ÐдæÔÚ¶ø²»ÊÇ»¥Ïà³åÍ»µÄ¡£
The MVC framework includes the following components:
MVC¿ò¼Ü°üº¬ÈçÏÂ×é³É²¿·Ö£º
Models. Model objects are the parts of the application that implement the logic for the application's data domain. Often,


Ïà¹ØÎĵµ£º

asp.netµÄ³ö·ÎÊÌâ

    ¿´ÁËÕÐƸÐÅÏ¢£¬Ã»·¢ÏÖ¼¸¸öÊÇÕÐ.netµÄ£¬¶¼ÊÇJava »òÕßC¡¢C++ ¡£·¢ÏÖ²ÎÓëµÄÏîÄ¿¾­ÑéÔÚУ԰ÕÐƸÒѾ­Ã»ÓÐÓÅÊÆÁË£¬
   ËƺõÍâÃæ¸üϲ»¶Java£¬µ«ÊǸöÈ˸оõ.NET»áÓкÜÇ¿´óµÄÇ÷ÊÆ£¬ËùÒÔ»¹ÊÇѧϰѧϰ£¬µ«ÊÇÒ²²»·ÅÆúC++µÄ¿ñÈÈ£¬ºÍwindows±à³ÌµÄѧϰ¡£
   ºÃµÄµ¼Ê¦ÊÜÒæ·Ëdz£¡£¡ ......

Building a Web 2.0 Portal with asp.net ajax µÚÒ»ÕÂ


[Òë]µÚÒ»Õ ½éÉÜ Web ÃÅ»§ÒÔ¼° Dropthings.com
ÔÚÕâ±¾ÊéÖУ¬ÎÒ½«»á¸øÄúչʾÔõÑù½éÉÜÒ»¸ö Ajax£¬Web 2.0 ʽµÄÃÅ»§¡£Õâ¸öÃÅ»§Ê¹Óà ASP.NET 3.5 , ASP.NET AJAX ºÍ .NET 3.5 , ҲʹÓÃÁË LINQ ºÍ SQL Server 2005.ÔÚ´´½¨Ó¦ÓóÌÐòÖУ¬Äã¿ÉÒÔÁ˽⵽£º
±ØÐëÒª×öµÄÉè¼Æ¾ö¶¨ºÍ Web 2.0 Óû§½çÃæÖпÉÓÃÐÔµÄÎÊÌâ
¼Ü¹¹µÄ¸´ÔÓÐԺͷ ......

asp.net µ÷Óô洢¹ý³Ì

1.»ñÈ¡Return·µ»ØÖµ
 ³ÌÐò´úÂë//´æ´¢¹ý³Ì
//Create PROCEDURE MYSQL
//     @a int,
//     @b int
//AS
//     return @a + @b
//GO
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["LocalSqlServer"].ToStri ......

ASP.NET²Ù×÷Cookie

//´´½¨
HttpCookie cookie = new HttpCookie("user","111");//´´½¨Cookie
cookie Expires = DateTime.Now.Add(15);//ÉèÖùýÆÚʱ¼ä
 Response.Cookies.Add(cookie);//´æÈë¿Í»§¶Ë
ÎÒÃÇÈ¡³öCookieÖµÒ²ºÜ¼òµ¥
string value = Request.Cookies["user"].value;
ÓÐʱºòÎÒÃÇÏëÔÚÒ»¸öCookieÖд¢´æ¶à¸öÐÅÏ¢£¬ÄÇÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ