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

ASP.NET MVC2 ѧϰ±Ê¼ÇÖ®URL·ÓÉ

    н¨Ò»¸öĬÈϵÄASP.NET MVC2Ó¦ÓóÌÐò£¬ÏµÍ³»áĬÈϵÄÉú³É°üº¬»ù±¾¹¦ÄܵÄÓ¦ÓóÌÐò£¬²é¿´ÕâЩÉú³ÉµÄ´úÂ룬¿É°ïÖúÎÒÃÇÀí½âASP.NET MVC2¡£ÏÂÃæÊǶÔURL·ÓɵÄÀí½â£¬ÒÔ±¸Íü¡£
Ò»¡¢Global.asax.csÖеĴúÂ룺
public class MvcApplication : System.Web.HttpApplication
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.MapRoute(
                "Default",                                   // Route name
                "{controller}/{action}/{id}",                // URL with parameters
                new { controller = "Home", action = "About", id = "" }  // Parameter defaults
            );
        }
        protected void Application_Start()
        {
            RegisterRoutes(RouteTable.Routes);
        }
}
Application_StartÊÇÍøÕ¾Æô¶¯ºó×îÏÈÖ´ÐеÄʼþ£¬ËùÒÔ¶ÔÍøÂç·ÓɵÄÉèÖ÷ÅÔÚ´Ë´¦£¬¾ßÌåͨ¹ý·½·¨routes.MapRoute("Default",¡¡"{controller}/{action}/{id}",¡¡ new {controller = "Home", action = "Index", id = ""}¡¡);ʵÏÖ£¬·½·¨µÄµÚÒ»¸ö²ÎÊýÊÇ·ÓɵÄÃû×Ö£


Ïà¹ØÎĵµ£º

ASP.NET 2.0ÔËÐÐʱ¼òÒª·ÖÎö

¸ÅÊö:
      ±¾ÎÄ»ùÓÚASP.NET 2.0µÄÔ´´úÂ룬¶ÔASP.NET 2.0ÔËÐÐʱ½øÐÐÁ˼òÒªµÄ·ÖÎö£¬Ï£ÍûÄܰïÖúÄãÀí½âASP.NET 2.0ÖÐÇëÇó´¦Àí¹ý³Ì¼°Ò³Ãæ±àÒëÄ£ÐÍ¡£
¹Ø¼ü×Ö£º
     ASP.NET 2.0ÔËÐÐʱ£¬Ô­Àí£¬ÇëÇó´¦Àí£¬Ò³Ãæ±àÒ룬ASP.NET 2.0 HTTP Runtime
Ö÷ÒªÀࣺ
   &nb ......

asp.net(C#)×Ö·û´®¼ÓÃÜ

asp.net(C#)×Ö·û´®¼ÓÃÜ
2010-03-12 09:59
using System;   
using System.Collections.Generic;   
using System.Text;   
using System.Security.Cryptography;//CryptographyÃÜÂëÊõ   
namespace DAL   
{   
......

asp.netÉú³É¾²Ì¬ÍøÒ³

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Text;
names ......

asp.net ÉèÖóö´íÒ³

    <system.web> 
      <!--********³ö´íÒ³µÄÉ趨********-->
    <customErrors mode="On" defaultRedirect="~/Error.htm"> </customErrors> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ