ASP.NETÖÐbin app_code app_dataµÈÎļþ¼ÐµÄ×÷ÓÃ
תÌù×Ô http://wuxiong8665.blog.163.com/blog/static/93512200991811400157/
¸ÅÀÀ£º
Îļþ¼ÐÃû³Æ
ÎļþÀàÐÍ
×¢ ÊÍ
Bin
.dll
°üº¬Ó¦ÓóÌÐòËùÐèµÄÈκÎÔ¤Éú³ÉµÄ³ÌÐò¼¯
App_Browsers
.browser
°üº¬Ó¦ÓóÌÐòÌØÓеÄä¯ÀÀÆ÷¶¨ÒåÎļþ£¬ASP.NETÓÃËüÀ´Ê¶±ð¸÷ä¯ÀÀÆ÷¼°È·¶¨ËüÃǵŦÄÜ
App_Code
.cs¡¢.vb¡¢.xsd¡¢×Ô¶¨ÒåµÄÎļþÀàÐÍ
°üº¬×÷ΪӦÓóÌÐòµÄÒ»²¿·Ö±àÒëµÄÀàµÄÔ´Îļþ¡£µ±Ò³Ãæ±»ÇëÇóʱ£¬ASP.NET±àÒë¸ÃÎļþ¼ÐÖеĴúÂë¡£¸ÃÎļþ¼ÐÖеĴúÂëÔÚÓ¦ÓóÌÐòÖÐ×Ô¶¯µØ±»ÒýÓÃ
App_Data
.mdb¡¢.mdf¡¢.xml
°üº¬Microsoft Office AccessºÍSQL ExpressÎļþÒÔ¼°XMLÎļþ»òÆäËûÊý¾Ý´æ´¢
App_GlobalResources
.resx
°üº¬ÔÚ±¾µØ»¯Ó¦ÓóÌÐòÖÐÒÔ±à³Ì·½Ê½Ê¹ÓõÄ×ÊÔ´Îļþ
App_LocalResources
.resx
°üº¬Ò³Ã淶ΧµÄ×ÊÔ´Îļþ
App_Themes
.skin¡¢.CSS¡¢.xsl¡¢¸½ÊôÎļþ
°üº¬Ò»×鶨ÒåASP.NETÒ³ÃæºÍ¿Ø¼þÍâ¹ÛµÄÎļþ
App_WebReferences
.wsdl
°üº¬ÓÃÒÔÉú³É´úÀíÀàµÄWSDLÎļþ£¬ÒÔ¼°ÓëÔÚÓ¦ÓóÌÐòÖÐʹÓÃWeb·þÎñÓйصÄÆäËûÎļþ
ÏêÊö
1. BinÎļþ¼Ð
BinÎļþ¼Ð°üº¬Ó¦ÓóÌÐòËùÐèµÄ£¬ÓÃÓڿؼþ¡¢×é¼þ»òÕßÐèÒªÒýÓõÄÈκÎÆäËû´úÂëµÄ¿É²¿Êð³ÌÐò¼¯¡£¸ÃĿ¼ÖдæÔÚµÄÈÎ
ºÎ.dllÎÄ ¼þ½«×Ô¶¯µØÁ´½Óµ½Ó¦ÓóÌÐò¡£Èç¹ûÔÚ¸ÃÎļþ¼ÐÖÐÁôÓв»ÓõĻò¹ýÆÚµÄÎļþ£¬Ôò¿ÉÄܳöÏÖ“¶þÒåÐÔÒýÓÃ(ambiguous
reference)”Òì³£µÄ·çÏÕ¡£»»¾ä»°Ëµ£¬Èç¹ûÁ½¸ö²»Í¬µÄ³ÌÐò¼¯¶¨ÒåÏàͬµÄÀà(ÏàͬµÄÃüÃû¿Õ¼äºÍÃû³Æ)£¬ÔòASP.NETÔËÐпⲻÄܾö¶¨Ó¦¸ÃʹÓÃÄÄ
Ò»
¸ö³ÌÐò¼¯£¬´Ó¶øÅ׳öÒ»¸öÒì³£¡£ÔÚ¿ª·¢Ê±£¬µ±ÎÒÃÇÖØÐÂÃüÃûÒ»¸öÏîÄ¿»òÒ»¸ö³ÌÐò¼¯µÄÃû³Æʱ£¬ÕâÊdz£¼ûµÄ´íÎó¡£ÎªÁ˱ÜÃâÕâÖÖ´íÎó£¬Ò»¶¨²»ÒªÔÚ¸ÃÎļþ¼ÐÖб£ÁôÈÎ
ºÎ ²»±ØÒªµÄ³ÌÐò¼¯£¬»òÕßÖÁÉÙÒª´ÓÅäÖÃÎļþµÄ<assemblies>½ÚÖÐɾ³ýÈçÏ´úÂëÐУº
<add assembly="*" />
ÔÚÉϱíËùÁÐËùÓÐÎļþ¼ÐÖУ¬Ö»ÓÐBin¿ÉÒÔ±»ASP.NET 1.xÓ¦ÓóÌÐòʶ±ð¡£¸ÃÎļþ¼ÐÊÇÇ¿ÖÆÐԵġ£
2. App_BrowserÎļ
Ïà¹ØÎĵµ£º
ADO.NET³ÌÐòÉè¼ÆÄ£ÄâÌâ(¹²206Ìâ)
1
ADO.NET Ä£ÐÍÖеÄÏÂÁÐÄÄЩ¶ÔÏóÊôÓÚConnected ¶ÔÏó
A. Connection
B. DataAdapter
C. DataReader
D. DataSet
ÕýÈ·´ð°¸:ABC
2
ÔÚADO.NET ÖÐ,Ϊ·ÃÎÊDataTable ¶ÔÏó´ÓÊý¾ÝÔ´ÌáÈ¡µÄÊý¾ÝÐÐ.¿ÉʹÓÃDataTable ¶ÔÏóµÄ_______ÊôÐÔ.
A. Rows
B. Columns
C. Constraints
D. Data ......
Æô¶¯Ò³Ã滺´æ£¬´úÂëÈçÏ£º
<%OutputCache Duration="60" VaryByParam="*"%>
˵Ã÷£º
Duration±ØÐèÊôÐÔ¡£Ò³Ãæ±»»º´æºµ£¬ÒÔÃëΪµ¥Î»£¬ÇÒ±ØÐëÊÇÕûÊý¡£
Location Ö¸¶¨Ó¦Êä³ö½øÐлº´æµÄλÖᣲÎÊýÊÇÒÔÏÂÑ¡ÏîÖ®Ò»£ºAny,Client,Downstream,None,Server,ServerAndClient
VaryByParam ±ØÐèÊôÐÔ¡£RequestÖбäÁ¿ ......
×öÍøÕ¾Óë¸ã°²È«Ò»°ã¶¼Àë²»¿ªÈ¨ÏÞ·ÖÅä,ÍøվȨÏÞÒ»°ã¶¼Ö±½ÓÉèÖÃÕ¾µãËùÔÚµÄÐéÄâĿ¼µÄ,Ò²¾ÍÊÇÔÚÐéÄâĿ¼µÄ°²È«ÀïÌí¼ÓinternetÀ´±öÕË»§,²¢·ÖÅä³ýÍêÈ«¿ØÖÆÍâµÄËùÓÐȨÏÞ;Èç¹ûÊÇ.NET,»¹±ØÐë¸øASP.NETÓû§ÅäÖóýÍêÈ«¿ØÖÆÒÔÍâµÄȨÏÞ!
Ò»°ãÇé¿öÏÂ,ÕâÑù¾ÍOKÁË,·þÎñÆ÷ÉϵÄÒ»°ãÍøÕ¾¶¼¿ÉÒÔÕý³£ÔËÐÐÁË!µ«ÏÖÔÚÎÒ·¢ÏÖ:C\WINDOWS ......
string destFileName = "ok.txt";
destFileName = Server.MapPath(".") + "\\"+destFileName;
destFileName = Server.UrlDecode(destFileName);
&nbs ......
1.»ñÈ¡Return·µ»ØÖµ
³ÌÐò´úÂë//´æ´¢¹ý³Ì
//Create PROCEDURE MYSQL
// @a int,
// @b int
//AS
// return @a + @b
//GO
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["LocalSqlServer"].ToStri ......