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

ASP.NET Web Ó¦ÓóÌÐòµÄ²¼¾Ö

ASP.NET Ó¦ÓóÌÐò±ØÐëλÓÚ IIS ÐéÄâĿ¼£¨Ò²³ÆΪӦÓóÌÐò¸ùĿ¼£©ÖС£ASP.NET Ó¦ÓóÌÐò¿É°üº¬ÒѱàÒëµÄ³ÌÐò¼¯£¨Í¨³£ÊÇ°üº¬ÒµÎñÂß¼­µÄ DLL Îļþ£©¡¢ÓÃÓÚ´æ´¢Ô¤±àÒë´úÂëµÄÒÑ֪Ŀ¼£¨Ä¿Â¼Ãû×ÜÊÇ \Bin£©¡¢´æ´¢ÔÚ»ùÓÚÎı¾µÄ¡¢Ò׶ÁµÄ Web.config ÎļþÖеÄÅäÖÃÉèÖá¢Ò³¡¢·þÎñÆ÷¿Ø¼þ£¬ÒÔ¼° XML Web ·þÎñ¡£
·þÎñÆ÷ÖÐÈκβ»ÓëÆäËûÓ¦ÓóÌÐò¹²ÏíµÄÔ¤±àÒë´úÂë±ØÐë´æ´¢ÔÚÓ¦ÓóÌÐòµÄ \Bin Ŀ¼ÖС£ËüÊÇÓ¦ÓóÌÐòµÄ±¾µØ³ÌÐò¼¯»º´æ¡£
×¢Òâ Èç¹ûÒªÔÚ Web ·þÎñÆ÷ÖеĶà¸öÓ¦ÓóÌÐòÖÐʹÓÃÏàͬµÄ³ÌÐò¼¯£¬ÔòÓ¦½«¸Ã³ÌÐò¼¯²¿Êðµ½È«¾Ö³ÌÐò¼¯»º´æÖС£ÏêϸÐÅÏ¢£¬Çë²ÎÔÄ“ÏòÈ«¾Ö³ÌÐò¼¯»º´æ²¿Êð¹²Ïí×é¼þ”¡£
Web.config ÎļþÔÚ»ùÓÚ XML µÄÎı¾ÎļþÖд洢ӦÓóÌÐò¼¶µÄÅäÖÃÎļþ¡£ÕâÒâζ×Å¿ÉÒÔʹÓÃÈÎÒâ±ê×¼µÄÎı¾±à¼­Æ÷»ò XML ·ÖÎöÆ÷À´´´½¨ËüÃÇ£¬¶øÇÒËüÃÇÊǿɶÁµÄ¡£Èç¹û²»ÔÚÓ¦ÓóÌÐò¸ùĿ¼Öаüº¬ Web.config Îļþ£¬ÔòÅäÖÃÉèÖÃÓÉ Machine.config ÎļþÖÐÕû¸ö·þÎñÆ÷µÄÅäÖÃÎļþÀ´È·¶¨¡£°²×° .NET Framework ʱ£¬»á°²×° Machine.config ÎļþµÄij¸ö°æ±¾¡£ÓйØÅäÖÃÎļþµÄÏêϸÐÅÏ¢£¬Çë²ÎÔÄ ASP.NET ÅäÖá£
ÏÂͼÏÔʾÁË ASP.NET Ó¦ÓóÌÐòÎļþϵͳ²¼¾ÖµÄʾÀý¡£
±¾Í¼ÖеÄÓ¦ÓóÌÐò°üÀ¨ \Bin Ŀ¼ÖеÄÁ½¸ö DLL Îļþ¡¢Ò»¸ö Default.aspx Ò³£¬Ò»¸öÃûΪ Menu.ascx µÄÓû§¿Ø¼þ¡¢Ò»¸öÃûΪ MyWebService.asmx µÄ XML Web ·þÎñÒÔ¼°Ò»¸ö Global.asax Îļþ¡£ÁíÍ⣬¸ÃÓ¦ÓóÌÐòÊÇʹÓÃÏÂÁÐÈý¸öÅäÖÃÎļþÅäÖõģºÏµÍ³¸ùĿ¼ÖмÆËã»ú¼¶±ðµÄ Machine.config Îļþ¡¢C:\Inetpub\Wwwroot Ŀ¼ÖÐÕ¾µã¼¶±ðµÄ Web.config ÎļþºÍÓ¦ÓóÌÐò¸ùĿ¼ÖÐÓ¦ÓóÌÐò¼¶±ðµÄ Web.config Îļþ¡£µ±Õ¾µãµÄ Web.config Îļþ¸²¸Ç Machine.config ÎļþÖеÄÉèÖÃʱ£¬ÔÚÓ¦ÓóÌÐò¸ùĿ¼Öд洢µÄÅäÖÃÉèÖý«¸²¸ÇÕ¾µãµÄ Web.config ÎļþºÍ Machine.config ÎļþÖеÄÉèÖá£
×¢Òâ ASP.NET Ó¦ÓóÌÐòÊÇÓÉÐéÄâĿ¼½á¹¹¶ø²»ÊÇÓÉÎïÀíĿ¼½á¹¹×é³ÉµÄ¡£ÅäÖÃÉèÖý«Ó¦Óõ½ÐéÄâ·¾¶ÖС£
²é¿´ ASP.NET °æ±¾
ASP.NET Ó¦ÓóÌÐòËùʹÓÃµÄ Framework °æ±¾ÊÇÓÉ aspnet_isapi.dll Îļþ°æ±¾ËùÈ·¶¨µÄ£¬´ËÎļþÊÇÔÚ IIS ½Å±¾Ó³ÉäÏÂΪ¸ÃÓ¦ÓóÌÐò×¢²áµÄ¡£½Å±¾Ó³ÉäÊÇÒÔÏÂÈýÖÖ·½Ê½µÄ¹ØÁª£ºÎļþÀ©Õ¹Ãû£¨ÀýÈç .aspx£©¡¢ÓëÇëÇóÏà¹ØÁªµÄ HTTP ¶¯×÷£¨ÀýÈç GET£©ÒÔ¼°µ± Web ·þÎñÆ÷½ÓÊÕµ½¾ßÓÐÌض¨ÎļþÀ©Õ¹ÃûµÄÎļþµÄ HTTP ÇëÇóʱ°üº¬ Web ·þÎñÆ÷Ó¦Ö´ÐеÄÖ¸ÁîµÄ DLL¡£¿ÉÒÔÉèÖÃÕâЩ½Å±¾Ó³Éäµ½×÷Ϊ IIS ÐéÄâĿ¼µÄÓ¦ÓóÌÐò¸ùĿ¼±¾Éí£¬»òÕßÔÊÐíËüÃÇ´Ó¸¸Ó¦ÓóÌÐò»òÕ¾µã¼Ì³Ð¡£
²é


Ïà¹ØÎĵµ£º

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

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

asp.net ȨÏÞÉèÖÃ

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// Pub µÄժҪ˵Ã÷
/// </summa ......

ASP.NETÅäÖÃOracleµÄÏà¹Ø˵Ã÷

²        Oracle9iµÄ°²×°£¬Çë²ÎÕÕ¹Ù·½µÄ°²×°ËµÃ÷¡£
²        Oracle9i°²×°³É¹¦ÒÔºó£¬Ê¹ÓùÜÀíÔ±£¨Óû§Ãû£ºsys¡¢ÃÜÂ룺sys£©µÄÉí·ÝµÇ¼½øÈ¥£¬´´½¨Ò»¸öÓû§ddymis£¬ÃÜÂ룺ddymis,½ÇɫĬÈϸ³Óèdba¡£
²      ......

ASP.NET MVCµÄÇëÇóÉúÃüÖÜÆÚ

ÉúÃüÖÜÆÚ²½Öè¸ÅÀÀ
µ±ÎÒÃǶÔASP.NET MVCÍøÕ¾·¢³öÒ»¸öÇëÇóµÄʱºò£¬»á·¢Éú5¸öÖ÷Òª²½Ö裺
²½Öè1£º´´½¨RouteTable
µ±ASP.NETÓ¦ÓóÌÐòµÚÒ»´ÎÆô¶¯µÄʱºò²Å»á·¢ÉúµÚÒ»²½¡£RouteTable°ÑURLÓ³Éäµ½Handler¡£
²½Öè2£ºUrlRoutingModuleÀ¹½ØÇëÇó
µÚ¶þ²½ÔÚÎÒÃÇ·¢ÆðÇëÇóµÄʱºò·¢Éú¡£UrlRoutingModuleÀ¹½ØÁËÿһ¸öÇëÇó²¢ÇÒ´´½¨ºÍÖ´ÐкÏÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ