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

¹ØÓÚasp.net mvc·Óɱí

µ±Ð´´½¨Ò»¸öasp.net mvcÓ¦ÓóÌÐò£¬»á×Ô¶¯²úÉúÒ»¸ö·ÓÉÅäÖá£
Global.asax.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace mvcApp
{
// Note: For instructions on enabling IIS6 or IIS7 classic mode,
// visit http://go.microsoft.com/?LinkId=9394801
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 = "Index", id = "" } // Parameter defaults
);
}
protected void Application_Start()
{
RegisterRoutes(RouteTable.Routes);
}
}
}
ÆäÖУº
ÉÏÃæÓиöroutes.MapRoute·½·¨¡£Õâ¸ö·½·¨µÄ×÷ÓÃÊÇÏòϵͳÔö¼ÓÒ»Ìõ·ÓɹæÔò¡£ÕâÀïΨһµÄÒ»Ìõ¹æÔòÊÇϵͳĬÈÏÔö¼ÓµÄ£¬µÚÒ»¸ö²ÎÊýÊǹæÔòÃû£¬ÊÇÒ»¸öÆÕͨ×Ö·û´®¡£¹Ø¼üÊǵڶþ¸ö²ÎÊý£¬ËüÒ²ÊÇÒ»¸ö×Ö·û´®£¬µ«ÊÇËüÃèÊöÁËÈçºÎ½âÎöurl¡£¿ÉÒÔÕâÑùÀí½â£¬ËüÃèÊöÁËurl´®HostNameºóÃ沿·ÖÈçºÎÆ¥Å䣬ÆäÖдø{}µÄ±íʾ²ÎÊýÆ¥Å䣬Èç¹û²»´øÔò±íʾ×Ö·û´®Æ¥Åä¡£
ÔÚĬÈÏÖµ±»ÉèÖõÄÇé¿öÏ£¬Ó³Éä¹æÔò“ÅäÉÙ²»Åä¶à”£¬ÉٵIJ¿·ÖÓÉĬÈÏÖµ´úÌæ¡£
ÎÒÃÇеķÓɹæÔòÒ»¶¨Òª·ÅÔÚÇ°Ã棬ÒòΪASP.NET MVC»á×ÔÉÏÏòÏÂÆ¥ÅäµÚÒ»ÌõÕÒµ½µÄ¿ÉÆ¥Åä·ÓɹæÔò¡£


Ïà¹ØÎĵµ£º

ASP.NET¿çÒ³Ãæ´«Öµ¼¼ÇÉ

1. ʹÓÃQueryString±äÁ¿
¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸ÖС£Èç¹ûÊÇ´«µÝÒ»¸ö»ò¶à¸ö°²È«ÐÔÒªÇ󲻸߻òÊǽṹ¼òµ¥µÄÊýֵʱ£¬¿ÉÒÔʹÓÃÕâ¸ö·½·¨¡£µ«ÊǶÔÓÚ´«µÝÊý×é»ò¶ÔÏóµÄ»°£¬¾Í²»ÄÜÓÃÕâ¸ö·½·¨ÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó£º
a.aspxµÄC#´úÂë
private void Button1_Click(object se ......

ASP.NETÏÂÔØÎļþ³öÏÖÌáʾ¿ò»òÕßÖ±½ÓÏÔʾÔÚä¯ÀÀÆ÷ÖÐ

ASP.NETÏÂÔØÎļþ³öÏÖÌáʾ¿ò»òÕßÖ±½ÓÏÔʾÔÚä¯ÀÀÆ÷ÖÐ
¼¼Êõ½»Á÷   2008-06-20 11:44   ÔĶÁ42   ÆÀÂÛ0  
×ֺţº ´ó´ó  ÖÐÖР СС
1£º³öÏÖÎļþÏÂÔØÌáʾ¿ò
string strFile="F:\\a.doc";//·¾¶¸ù¾Ýʵ¼ÊÇé¿ö¶ø¶¨
if(!System.IO.File.Exists(strFile))
  {
  ......

FlashÉÏ´«Îļþ(½áºÏasp.net)

ת×Ô£ºhttp://www.cnblogs.com/yao/archive/2007/02/24/655190.html
FlashÉÏ´«Îļþ(½áºÏasp.net)
Ò»¡¢ÊµÏÖÔ­Àí¡£
ÔÚijЩ³¡ºÏ£¬ÎÒÃÇÐèҪʹÓÃFlash½øÐГÎļþÉÏ´«”£¬Ô­ÒòÊÇFlash ÄÜÖÆ×÷³ö±íÏÖÁ¦·á¸»µÄUI½çÃæ¡£
(×Ô¸ºÓֹª¹ÑÎŵÄÎÒÔÚÕâÀï×öÒ»¸ö²¹³ä£ºFlashʹÓÃflash.net°üÖеÄFileReferenceÊÇ¿ÉÒÔ·¢ËÍÎļþÊý¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ