asp.net___web.configÏê½â £¨×ªÔØ£©
ÔÚ¿ª·¢Öо³£»áÓöµ½ÕâÑùµÄÇé¿ö£¬ÔÚ²¿Êð³ÌÐòʱΪÁ˱£ÃÜÆð¼û²¢²»½«Ô´´úÂëËæÏîĿһͬ·¢²¼£¬¶øÎÒÃÇ¿ª·¢Ê±µÄ»·¾³Ó벿Êð»·¾³¿ÉÄܲ»Ò»Ö£¨±ÈÈçÊý¾Ý¿â²»Ò»Ñù£©£¬Èç¹ûÔÚ´úÂëÖб£´æÕâЩÅäÖÃÕâЩÐÅÏ¢²¿ÊðʱÐèÒªµ½Óû§ÄÇÀï¸ü¸Ä´úÂëÔÙÖØбàÒ룬ÕâÖÖ²¿Êð·½Ê½·Ç³£Âé·³¡£
ÔÚ.netÖÐÌṩÁËÒ»ÖÖ±ã½ÝµÄ±£´æÏîÄ¿ÅäÖÃÐÅÏ¢µÄ°ì·¨£¬ÄǾÍÊÇÀûÓÃÅäÖÃÎļþ£¬ÅäÖÃÎļþµÄÎļþºó׺һ°ãÊÇ.config£¬ÔÚasp.netÖÐÅäÖÃÎļþÃûÒ»°ãĬÈÏÊÇweb.config¡£Ã¿¸öweb.configÎļþ¶¼ÊÇ»ùÓÚXMLµÄÎı¾Îļþ£¬²¢ÇÒ¿ÉÒÔ±£´æµ½WebÓ¦ÓóÌÐòÖеÄÈκÎĿ¼ÖС£ÔÚ·¢²¼WebÓ¦ÓóÌÐòʱweb.configÎļþ²¢²»±àÒë½ødllÎļþÖС£Èç¹û½«À´¿Í»§¶Ë·¢ÉúÁ˱仯£¬½ö½öÐèÒªÓüÇʱ¾´ò¿ªweb.configÎļþ±à¼Ïà¹ØÉèÖþͿÉÒÔÖØÐÂÕý³£Ê¹Ó㬷dz£·½±ã¡£
±¾ÆªÒª½²ÊöµÄ֪ʶÈçÏ£º
ÅäÖÃÎļþµÄ²éÕÒÓÅÏȼ¶
ÅäÖÃÎļþ½Úµã˵Ã÷
ÅäÖÃÎļþµÄ²Ù×÷
ÅäÖÃÎļþµÄ²éÕÒÓÅÏȼ¶
ÔÚ.netÌṩÁËÒ»¸öÕë¶Ôµ±Ç°»úÆ÷µÄÅäÖÃÎļþ£¬Õâ¸öÎļþÊÇmachine.config£¬ËüλÓÚ%windir%\Microsoft.NET\Framework\v2.0.50727\CONFIG\ÎļþÏ£¨%windir%ÊÇϵͳ·ÖÇøϵÄϵͳĿ¼£¬ÔÚÃüÁîÐÐģʽÏÂÊäÈë%windir%È»ºó»Ø³µ¾ÍÄܲ鿴µ±Ç°»úÆ÷µÄϵͳĿ¼£¬ÔÚWindows2003¼°WindowsXPÖÐ%windir%ÊÇϵͳ·ÖÇøϵÄwindowsĿ¼£¬ÔÚWindows2000ÖÐ%windir%ÊÇϵͳ·ÖÇøϵÄWinNTĿ¼£¬ÔÚ±ÊÕß»úÆ÷ÉÏÕâ¸öϵͳĿ¼ÊÇC:\WINDOWS£©¡£Õâ¸öÎļþÀïÃ涨ÒåÁËÕë¶Ôµ±Ç°»úÆ÷µÄWinForm³ÌÐòºÍasp.netÓ¦ÓóÌÐòµÄÅäÖá£ÏÂÃæÊÇmachine.configÎļþµÄÄÚÈÝ£º
ÔÚÕâ¸öÎļþ¼ÐÏ»¹ÓÐÒ»¸öweb.configÎļþ£¬Õâ¸öÎļþ°üº¬ÁËasp.netÍøÕ¾µÄ³£ÓÃÅäÖá£ÏÂÃæÊÇÕâ¸öweb.configÎļþµÄÄÚÈÝ£º
asp.netÍøÕ¾IISÆô¶¯µÄʱºò»á¼ÓÔØÅäÖÃÎļþÖеÄÅäÖÃÐÅÏ¢£¬È»ºó»º´æÕâЩÐÅÏ¢£¬ÕâÑù¾Í²»±Øÿ´ÎÈ¥¶ÁÈ¡ÅäÖÃÐÅÏ¢¡£ÔÚÔËÐйý³ÌÖÐasp.netÓ¦ÓóÌÐò»á¼àÊÓÅäÖÃÎļþµÄ±ä»¯Çé¿ö£¬Ò»µ©±à¼ÁËÕâЩÅäÖÃÐÅÏ¢£¬¾Í»áÖØжÁÈ¡ÕâЩÅäÖÃÐÅÏ¢²¢»º´æ¡£
µ±ÎÒÃÇÒª¶Áȡij¸ö½Úµã»òÕß½Úµã×éÐÅϢʱ£¬ÊÇ°´ÕÕÈçÏ·½Ê½ËÑË÷µÄ£º
(1)Èç¹ûÔÚµ±Ç°Ò³ÃæËùÔÚĿ¼Ï´æÔÚweb.configÎļþ£¬²é¿´ÊÇ·ñ´æÔÚËùÒª²éÕҵĽáµãÃû³Æ£¬Èç¹û´æÔÚ·µ»Ø½á¹û²¢Í£Ö¹²éÕÒ¡£
(2)Èç¹ûµ±Ç°Ò³ÃæËùÔÚĿ¼Ï²»´æÔÚweb.configÎļþ»òÕßweb.configÎļþÖв»´æÔڸýáµãÃû£¬Ôò²éÕÒËüµÄÉϼ¶Ä¿Â¼£¬Ö±µ½ÍøÕ¾µÄ¸ùĿ¼¡£
(3)Èç¹ûÍøÕ¾¸ùĿ¼Ï²»´æÔÚweb.configÎļþ»òÕßweb.configÎļþÖв»´æÔڸýڵãÃûÔòÔÚ%windir%\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.configÎļþÖвéÕÒ¡£
(4)Èç¹ûÔÚ%windir%\Mi
Ïà¹ØÎĵµ£º
·½·¨Ò»£ºÊ¹ÓÃFileUpLoad ¿Ø¼þ¶à¸öÖ±½ÓÉÏ´«¡£ÕâÑù×öµÄÎÊÌâ¾ÍÊÇÒªÇóÒ³ÃæÌá½»£¬´Ó¶øµ¼ÖÂһЩ²»Ó¦¸ÃˢеÄÄÚÈÝÔڴ˲Ù×÷¹ý³ÌÖÐÏûʧµô¡£µ«ÊÇÓÃScriptManger À´Åª È´ÓÖ²»ÄÜÉÏ´«ÁË ÔÒòºÜ¼òµ¥ FileUpLoad ¿Ø¼þÒªÇópost¡£ÓÉÓÚÕâ¸öÎÊÌâ ËùÒÔ¶àÊýÈ˶¼ºÜÉÙ²ÉÓÃÕâÖÖ·½·¨£¬²»µÃ²»ÁíÑ°Ëü·¨¡£ÏÂÃæµÄ·½·¨¶þ½â¾ö´ËÎÊÌâ¡£
·½·¨¶þ£ºÊ¹ÓÃHtml±êÇ ......
¿´ÁËasp.net µÄ»Øµ÷¼¼Êõºó²»ÊǺÜÀí½â¡£»¹ÊÇ°ÑдµÄ¶«Î÷ÌùÏ£¬×Ô¼ºÒÔºóѧϰʱºò¶à¿´¿´¡£Ç°Ì¨index.aspxÒ³<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="_Default" %>
<%@ Import Namespace = "System.Text" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transit ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý [·µ»ØĿ¼]
´«ËͲÎÊý£º
response.write("£¼script£¾window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')£¼/script£¾")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥ ......
ÿ¸öWebÓ¦ÓóÌÐò¶¼Òª¹æ»®×Ô¼ºµÄĿ¼½á¹¹£¬³ýÁË×Ô¼ºÉè¼ÆµÄĿ¼½á¹¹ÒâÍ⣬ASP.NetÒ²¶¨ÒåһЩÓÐÌØÊâÒâÒåµÄĿ¼¡£
1.Bin£ºÕâ¸öĿ¼°üº¬ÁËËùÓеÄÔ¤±àÒëµÄASP.NETµÄWebÓ¦ÓóÌÐòʹÓõÄ.Net³ÌÐò¼¯£¨Í¨³£ÊÇDLLs£©£¬ÕâЩ³ÌÐò¼¯Ò²°üÀ¨Ô¤±àÒëµÄÍøÒ³À࣬ÒÔ¼°±»ÕâЩÀàËùÒýÓõÄÆäËûµÄ³ÌÐò¼¯¡£
&nb ......
ASP.NET 3.5ÖÐ6¸öÄÚÖõÄÊý¾ÝÔ´¿Ø¼þ·Ö±ðÓÃÓÚÌض¨ÀàÐ͵ÄÊý¾Ý·ÃÎÊ¡£
SqlDataSource ¿Ø¼þ ÔÊÐí·ÃÎÊÖ§³ÖADO.NETÊý¾ÝÌṩ³ÌÐòµÄËùÓÐÊý¾ÝÔ´¡£¸Ã¿Ø¼þĬÈÏ¿ÉÒÔ·ÃÎÊODBC¡¢OLE DB¡¢SQL Server¡¢OraleºÍSQL Server CE Ìṩ³ÌÐò
LinqDataSource ¿Ø¼þ ¿ÉÒÔʹÓÃLINQ ²éѯ·ÃÎʲ»Í¬ÀàÐ͵ÄÊý¾Ý¶ÔÏó
O ......