Asp.net mvc
MVC(¼´Ä£ÐÍ-ÊÓͼ-¿ØÖÆÆ÷)
MVC(Model-View-Controller)ÓÃÓÚ±íʾһÖÖÈí¼þ¼Ü¹¹Ä£Ê½.Ëü°ÑÈí¼þϵͳ·ÖΪÈý¸ö»ù±¾²¿·Ö:Ä£ÐÍ(Model),
ÊÓͼ(View)ºÍ¿ØÖÆÆ÷(Controller)
MVCµÄÓŵ㣺
1¶à¸öÊÓͼ¶ÔÓ¦Ò»¸öÄ£Ð͵ÄÄÜÁ¦
2±»·ÖΪÈý¸ö²ã£¬Âß¼ÓëÊÓͼ·ÖÀ룬¸÷¸ö²ã¸ü±ãÓÚ¶ÀÁ¢´¦Àí¸÷×ÔµÄÊÂÇé
3ÓÐÀûÓÚÈí¼þ¹¤³Ì»¯¹ÜÀí¡£ÓÉÓÚ²»Í¬µÄ²ã¸÷˾ÆäÖ°£¬Ã¿Ò»²ã²»Í¬µÄÓ¦ÓþßÓÐijЩÏàͬµÄÌØÕ÷£¬
ÓÐÀûÓÚͨ¹ý¹¤³Ì»¯¡¢¹¤¾ß»¯²úÉú¹ÜÀí³ÌÐò´úÂë¡£
MVCµÄȱµã£º
1Ôö¼ÓÁËϵͳ½á¹¹ºÍʵÏֵĸ´ÔÓÐÔ¡£¶ÔÓÚ¼òµ¥µÄ½çÃ棬Ñϸñ×ñÑMVC£¬Ê¹Ä£ÐÍ¡¢ÊÓͼÓë¿ØÖÆÆ÷·ÖÀ룬
»áÔö¼Ó½á¹¹µÄ¸´ÔÓÐÔ£¬²¢¿ÉÄܲúÉú¹ý¶àµÄ¸üвÙ×÷£¬½µµÍÔËÐÐЧÂÊ¡£
2ÊÓͼÓë¿ØÖÆÆ÷¼äµÄ¹ýÓÚ½ôÃܵÄÁ¬½Ó¡£ÊÓͼÓë¿ØÖÆÆ÷ÊÇÏ໥·ÖÀ룬µ«È·ÊµÁªÏµ½ôÃܵIJ¿¼þ£¬ÊÓͼûÓÐ
¿ØÖÆÆ÷µÄ´æÔÚ£¬ÆäÓ¦ÓÃÊǺÜÓÐÏ޵ģ¬·´Ö®ÒàÈ»£¬ÕâÑù¾Í·Á°ÁËËûÃǵĶÀÁ¢ÖØÓá£
3ÊÓͼ¶ÔÄ£ÐÍÊý¾ÝµÄµÍЧÂÊ·ÃÎÊ¡£ÒÀ¾ÝÄ£ÐͲÙ×÷½Ó¿ÚµÄ²»Í¬£¬ÊÓͼ¿ÉÄÜÐèÒª¶à´Îµ÷ÓòÅÄÜ»ñµÃ×ã¹»µÄÏÔʾÊý¾Ý¡£
¶Ôδ±ä»¯Êý¾ÝµÄ²»±ØÒªµÄƵ·±·ÃÎÊ£¬Ò²½«Ë𺦲Ù×÷ÐÔÄÜ¡£
4 Ä¿Ç°£¬Ò»°ã¸ß¼¶µÄ½çÃ湤¾ß»ò¹¹ÔìÆ÷²»Ö§³ÖMVCģʽ¡£¸ÄÔìÕâЩ¹¤¾ßÒÔÊÊÓ¦MVCÐèÒªºÍ½¨Á¢·ÖÀëµÄ²¿¼þµÄ
´ú¼ÛÊǺܸߵģ¬´Ó¶øÔì³ÉʹÓÃMVCµÄÀ§ÄÑ
ASP.NET MVC FrameworkÊÇ΢Èí¹Ù·½ÌṩµÄMVCģʽ±àдASP.NET WebÓ¦ÓóÌÐòµÄÒ»¸ö¿ò¼Ü.ÒÑÓÚ2009Äê3ÔÂ19ÈÕ
Õýʽ·¢²¼¡£
¼òµ¥ÁÐ×Ó¼ûT2ÊɾúÌåµÄ²©¿Íhttp://www.cnblogs.com/leoo2sk/archive/2008/10/27/1320285.html
Ïà¹ØÎĵµ£º
Ô´ÂëÏÂÔØ£ºhttp://www.tracefact.net/SourceCode/Asp-Net-Paging-Control.rar
Asp.Net ·ÖÒ³ÏÔʾ¿Ø¼þ
ÕâƪÎÄÕÂ×ʼÊÇ2008Äê2Ô·ÝдµÄ£¬ÎÒÆð³õÏë×Å´ó¼ÒÓ¦¸Ã¶¼ÓÐ×Ô¼ºµÄÊý¾Ý·ÖÒ³·½Ê½£¬¶øÎÒ±¾È˲¢·Çרҵ×ö¿Ø¼þ¿ª·¢£¬ËùÒÔÖ»ÊÇÏë×ÅÌṩµã˼·£¬²¢Ã»ÓÐ×ö̫ϸÖµÄÑо¿¡£½á¹û¸ù¾Ýä¯ÀÀÁ¿·¢ÏÖ´ó¼Ò»¹ÊDZȽϹØ×¢µÄ£¬ÓÚÊǾͳé¿Õ¶ ......
¡ïAsp.netÈçºÎÁ¬½ÓSQL Server2000Êý¾Ý¿â¡ï
´ó¼ÒºÃ,ÒÔÏÂÊÇÓйØASP.netÁ¬½ÓSQL Server2000Êý¾Ý¿âµÄÀý³Ì£¬
ÔÚÕâÀïºÍ´ó¼Ò·ÖÏíһϣº
Asp.netÁ¬½ÓSQL Server2000Êý¾Ý¿âÀý³ÌÏê½â:
<%@ Import Namespace="System.Data" %>
<%@ Import NameSp ......
ÎÄÕ³ö´¦£ºhttp://www.cnblogs.com/ejiyuan/archive/2007/11/09/954325.html
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Collections;
using System.Web.UI.Design;
[assembly: TagPr ......
ÔÚWeb.ConfigÎļþÀïÃæ
<system.web>
¼ÓÈëÒ»ÏÂÕâ¶Î´úÂë
</system.web>
<globalization requestEncoding="GB2312" responseEncoding ="GB2312"/>
˳±ã˵һÏÂUrlencodeµÄ±àÂë¼¼ÇÉ¡£
System.Web.HttpUtility.UrlEncode(str, Encoding.GetEncoding("GB2312"));
¿ÉÒÔ¸ù¾ÝÐèҪȥ¸ñʽ»¯UrlµÄ ......
(1) ASP.NET µÄÊý¾ÝÑéÖ¤¿Õ¼þRegularExpressionValidator ʵÏÖÑéÖ¤FileUpLoadÉÏ´«ÎļþµÄÀàÐÍ
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="FileUpload1"
ErrorMessage="¸ñʽ²»×¼È·£¬Ö»ÄÜ(.jpg|.JPG|.gif|.G ......