¡¶ASP.NET MVC°¸Àý½Ì³Ì¡·
±¾ÏµÁÐÎÄÕÂͨ¹ýÒ»¸öÐéÄâµÄ°¸Àý——¡¶MVC¹«¸æ·¢²¼ÏµÍ³¡·µÄ¿ª·¢¹ý³Ì£¬È«ÃæչʾÁËASP.NET MVCµÄ»ù±¾Ê¹Ó÷½·¨£¬Í¬Ê±ÔÚÌÖÂÛÁËÕâ¸ö¿ò¼ÜµÄ»ù±¾ÔÀí¡£
Õâ¸öÎÄÕÂϵÁеÄÄ¿µÄ¾ÍÊÇʹÅóÓÑÃǸüÇáËɵÄÈëÃÅASP.NET MVC¡£
Õâ¸öϵÁлá°üº¬µÄÄÚÈÝÓУºASP.NET MVC»ù±¾Ó¦Óᢻù±¾ÔÀí¡¢Â·ÓÉ´¦Àí¡¢±íµ¥´¦Àí¡¢ÓëASP.NET AJAX½áºÏ¡¢ÓëJQuery½áºÏ¡¢À¹½ØÆ÷µÈ¡£
ASP.NET MVC°¸Àý½Ì³Ì£¨»ùÓÚASP.NET MVC beta£©——µÚһƪ£º×¼±¸¹¤×÷
ÕªÒª: ±¾ÎĽ«¼òÒª½éÉÜÕâ¸öÎÄÕÂϵÁеÄÄ¿µÄ¡¢ÐÎʽ¼°´óÌåÄÚÈÝ¡£²¢ÇÒÍê³É¿ªÊ¼Ñ§Ï°Õâ¸öϵÁÐÇ°Ëù±ØÒªµÄ×¼±¸¹¤×÷¡£
ASP.NET MVC°¸Àý½Ì³Ì£¨»ùÓÚASP.NET MVC beta£©——µÚ¶þƪ£ºµÚÒ»¸öÒ³Ãæ
ÕªÒª: ±¾ÎÄÊ×ÏÈÒ»²½Ò»²½Íê³ÉDemoµÄµÚÒ»¸öÒ³Ãæ——Ê×Ò³¡£È»ºó¸ù¾ÝʵÏÖ¹ý³Ì£¬ËµÃ÷Ò»ÏÂÆäÖÐÓõ½µÄÓëASP.NET MVCÏà¹ØµÄ¸ÅÄîÓëÔÀí¡£
ASP.NET MVC°¸Àý½Ì³Ì£¨»ùÓÚASP.NET MVC beta£©——µÚÈýƪ£ºASP.NET MVCÈ«¾Ö¹Û
ÕªÒª: ±¾ÎĶÔASP.NET MVCµÄÈ«¾ÖÔËÐлúÀí½øÐÐÒ»¸ö¼òÒªµÄ½éÉÜ£¬ÒÔʹµÃÅóÓÑÃǸüºÃµÄÀí½âºóÐøÎÄÕ¡£
ASP.NET MVC°¸Àý½Ì³Ì£¨»ùÓÚASP.NET MVC beta£©——µÚËÄƪ£º´«µÝ±íµ¥Êý¾Ý
ÕªÒª: ±¾ÎĽ«Íê³ÉÎÒÃÇ“MVC¹«¸æ·¢²¼ÏµÍ³”µÄ¹«¸æ·¢²¼¹¦ÄÜ£¬ÒÔ´ËչʾÔÚASP.NET MVCÖÐÈçºÎ´«µÝ´¦Àí±íµ¥µÄÊý¾Ý¡£
ASP.NET MVC°¸Àý½Ì³Ì£¨»ùÓÚASP.NET MVC beta£©——µÚÎåƪ£ºMVCÕûºÏAjax
ÕªÒª: ±¾ÎĽ«´ÓÍê³É“ÊäÈëÊý¾ÝÑéÖ¤”Õâ¸ö¹¦Äܳö·¢£¬Öð½¥Õ¹¿ªASP.NET MVCÓëAjax½áºÏµÄ·½·¨¡£Ê×ÏÈ£¬±¾ÎĽ«Ê¹ÓÃASP.NET MVCÌṩµÄͬ²½·½Ê½Íê³ÉÊý¾ÝÑéÖ¤¡£¶øºó£¬½«·Ö±ð½áºÏASP.NET AJAXºÍJQuery½«Õâ¸ö¹¦ÄÜÖع¹³ÉÒì²½ÐÎʽ¡£
ASP.NET MVC°¸Àý½Ì³Ì£¨»ùÓÚASP.NET MVC beta£©——µÚÁùƪ£ºÀ¹½ØÆ÷
ÕªÒª: ±¾ÎĽ«¶Ô“MVC¹«¸æ·¢²¼ÏµÍ³”µÄ·¢²¼¹«¸æ¹¦ÄÜÌí¼ÓÈÕÖ¾¹¦ÄܺÍÒì³£´¦Àí¹¦ÄÜ£¬½è´ËÀ´ÌÖÂÛASP.NET MVCÖÐÀ¹½ØÆ÷µÄʹÓ÷½·¨¡£
ASP.NET MVC°¸Àý½Ì³Ì£¨»ùÓÚASP.NET MVC beta£©——µÚÆßƪ£ºÏл°ASP.NET MVC
ÕªÒª: ±¾ÎÄ×÷Ϊ¡¶ASP.NET MVC°¸Àý½Ì³Ì¡·µÄÍê½áƪ£¬½ö´
Ïà¹ØÎĵµ£º
ASP.NET AJAXÈëÃÅϵÁн«»áд¹ØÓÚASP.NET AJAXһЩ¿Ø¼þµÄʹÓ÷½·¨ÒÔ¼°»ù´¡ÖªÊ¶£¬ÆäÖв¿·ÖÎÄÕÂΪԴ´£¬Ò²ÓÐһЩÎÄÕÂÊÇÖ±½Ó·Òë×Ô¹Ù·½Îĵµ£¬±¾²¿·ÖÄÚÈݻ᲻¶Ï¸üС£
Ŀ¼
ASP.NET AJAXÈëÃÅϵÁУ¨1£©£º¸ÅÊö
µ¼¶Á£º×÷Ϊ±¾ÏµÁÐÎÄÕµĿªÆª£¬¼òµ¥½éÉÜÒ»ÏÂASP.NET AJAXµÄ¸Å¿ö¼°¸÷¸ö×é³É²¿·Ö¡£
......
1¡¢Ö±½Ó½«Ò³ÃæÄÚÈÝ´æÔÚ±äÁ¿ÖкóÊä³ö£º
StringBuilder IndexContentResult= new StringBuilder(); //´æ·ÅÊä³öÒ³ÃæµÄHTML
IndexContentResult.Append("<html>\n");
IndexContentResult.Append(&qu ......
µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó(OO)ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ²»ÏÂÈ¥!
¡¡¡¡µÚ¶þ²½¡¡¶Ô.NET FrameworkÀà¿âÓÐÒ»¶¨µÄÁ˽⠿ÉÒÔͨ¹ý¿ª·¢Windows FormÓ¦ÓóÌÐòÀ´Ñ§Ï°.NET Framework¡£ASP.NETÊǽ¨¹¹ÔÚ.NET FrameworkÖ®É쵀 ......
ÈçÓÐÒ³ÃæAdmin£¬ÔòÔÚÆäcsÎļþÖÐдÈçÏ´úÂ룺
protected void Page_Load(object sender, EventArgs e)
{
Response.AddHeader("Cache-Control", "no-cache");
Response.Expires = -1;
Response.Cache.SetNoStore();
Response.AddHeader("Pragma", "no-cache");
Response ......
×î½üÔÚÓÃÓû§¿Ø¼þʱ£¬ÒýÓû§¿Ø¼þµÄÒ³ÃæÓÐʱºò»áºÍÓû§¿Ø¼þ½øÐÐÊý¾ÝµÄ½»»¥£¬ÍøÉϺÃÏñºÜ¶àÈ˲»ÖªµÀºÎ»ñÈ¡
д¸öÀý×Ó˵Ã÷Ò»ÏÂ
È¡µÃÓû§¿Ø¼þÀïÃæµÄ¿Ø¼þ²¢½øÐи³Öµ
Óû§¿Ø¼þaspxÒ³´úÂë
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="HeadPanel.ascx.cs" Inherits="HeadPanel" %>
& ......