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

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, model objects retrieve and store model state in a database. For example, a Product object might retrieve information from a database, operate on it, and then write updated information back to a Products table in SQL Server. In small applications, the mo


Ïà¹ØÎĵµ£º

ASP.NETµÄACCESSÊý¾Ý¿â²Ù×÷Àà

//private string datapatch = ConfigurationSettings.AppSettings["acessconn"];//Êý¾Ý¿âµØÖ· 
private string datapatch = "db/global.asa";//Êý¾Ý¿âµØÖ· 
/// 
/// È¡µÃdataset 
// 
/// ²éѯÓï¾ä 
/// 
public DataSet GetDataSet(string Commandtext) 
{&nbs ......

ASP.NET´ÓSQL ServerÊý¾Ý¿âÌáȡͼƬ²¢ÏÔʾÔÚDataGrid

ʹÓÃGridview°ó¶¨Êý¾Ý¿âÖеÄͼƬ(תÔØ)
×¢£º´ËϵÁмǼÔÚÎÒʵ¼Ê¿ª·¢ÖÐÓöµ½µÄÎÊÌâºÍÊÕ²ØһЩ¼¼ÇÉÎÄÕ¡£
ÎÒÃǶ¼ÖªµÀ£¬ÔÚGridviewÖв»ÄÜÖ±½ÓÈ¥°ó¶¨Êý¾Ý¿âÖеÄͼƬ£¬ÎÒÃÇ¿ÉÒÔÀûÓÃHttpHandlerºÜÈÝÒ×µÄÍê³ÉÕâ¸öÈÎÎñ£¬ÔÚÕâÀïÎҼǼһÏÂÕâ¸ö¹ý³Ì¡£
1.ÉÏ´«Í¼Æ¬´æ´¢µ½Êý¾Ý¿âÖÐ
ÔÚÊý¾Ý¿âÖд´½¨Ò»¸ö±í£¬Ìí¼ÓÒ»ÏÂ3¸ö×ֶΣº
²½ÖèÒ»£ ......

How postback works in ASP.NET

Introduction
In this article, we will take a closer look at how ASP.NET pages post back to themselves, and how to customize this feature in our web applications.
function __doPostBack(eventTarget, eventArgument)
One of the most important features of the ASP.NET environment is the ability to decla ......

ÈçºÎÔÚASP.NetºÍJavaScriptÖд«µÝÊý¾Ý

×î½üÅöµ½Ò»ÎÊÌ⣬ÐèÒªÔÚASP.NetºÍJavaScriptÖд«µÝÊý¾Ý¡£¾ßÌåµÄÐèÇóÊÇÕâÑùµÄ£¬Ò³Ãæpostbackºó½«»áload JS£¬µ«ÊÇÐèÒª¼Çס֮ǰij¸ö״̬£¬Õâ¸ö״̬ÊÇÖ¸JSµÄ״̬£¬Ò²¾ÍÊÇ˵load JSºó£¬»¹Òª¼Çס֮ǰµÄ״̬£¬¶ø²»Êǻص½Ä¬ÈϵÄ״̬¡£
Ò»¿ªÊ¼ÏëÁ˺ܶà°ì·¨£¬µ«¶¼²»³É¹¦£¬ºóÀ´ÎÊÁËÎÊͬÊ£¬·¢ÏÖ¿ÉÒÔͨ¹ýÒþ²ØµÄ±íµ¥ÔªËØÀ´´«µÝÊý¾Ý£¬ËùÒ ......

ASP.NETÖÐjavascriptÓëc#»¥Ïà·ÃÎÊ

ÏÂÃæÒª½â¾öµÄÎÊÌâÈçÏ£º
       1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
¡¡¡¡2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
¡¡¡¡3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
¡¡¡¡4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
¡¡¡¡ÎÊÌâ1´ð°¸ÈçÏ£º
¡¡¡¡javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
¡¡¡¡·½·¨Ò»£º
  &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ