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

asp.NET ÈçºÎÉú³ÉDLLÎļþ£¬²¢µ÷ÓÃ


ʹÓÃcscÃüÁ.csÎļþ±àÒë³É.dllµÄ¹ý³Ì
ºÜ¶àʱºò,ÎÒÃÇÐèÒª½«.csÎļþµ¥¶À±àÒë³É.dllÎļþ, ²Ù×÷ÈçÏÂ:
´ò¿ªÃüÁî´°¿Ú->ÊäÈëcmdµ½¿ØÖÆ̨->cd C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
תµ½vs.net°²×°µÄ¸ÃĿ¼ÏÂ->Ö´ÐÐcscÃüÁîcsc /target:library File.cs->ÔÚ¸ÃĿ¼Ï²úÉúÒ»¸ö¶ÔÓ¦Ãû×ÖµÄ.dllÎļþ(Ç°Ìá:°Ñ.csÎļþ·Åµ½C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322Ŀ¼ÏÂ)
cscÃüÁîµÄ·½Ê½ºÜ¶à,Çë²Î¿¼ÒÔÏÂ
Òë File.cs ÒÔ²úÉú File.exe
csc File.cs ±àÒë File.cs ÒÔ²úÉú File.dll
csc /target:library File.cs ±àÒë File.cs ²¢´´½¨ My.exe
csc /out:My.exe File.cs ͨ¹ýʹÓÃÓÅ»¯ºÍ¶¨Òå DEBUG ·ûºÅ£¬±àÒ뵱ǰĿ¼ÖÐËùÓÐµÄ C# Îļþ¡£Êä³öΪ File2.exe
csc /define:DEBUG /optimize /out:File2.exe *.cs ±àÒ뵱ǰĿ¼ÖÐËùÓÐµÄ C# Îļþ£¬ÒÔ²úÉú File2.dll µÄµ÷ÊÔ°æ±¾¡£²»ÏÔʾÈκλձêºÍ¾¯¸æ
csc /target:library /out:File2.dll /warn:0 /nologo /debug *.cs ½«µ±Ç°Ä¿Â¼ÖÐËùÓÐµÄ C# Îļþ±àÒëΪ Something.xyz£¨Ò»¸ö DLL£©
csc /target:library /out:Something.xyz *.cs ±àÒë File.cs ÒÔ²úÉú File.dll
csc /target:library File.csÕâ¸ö¾ÍÊÇÎÒÃÇʹÓÃ×î¶àµÄÒ»¸öÃüÁÆäʵ¿ÉÒÔ¼òµ¥µÄд³Écsc /t:library File.cs£¬ÁíÍâµÄÒ»¸öд·¨ÊÇ csc /out:mycodebehind.dll /t:library mycodebehind.cs£¬Õâ¸ö¿ÉÒÔ×Ô¼ºÖ¸¶¨Êä³öµÄÎļþÃû¡£
csc /out:mycodebehind.dll /t:library mycodebehind.cs mycodebehind2.cs£¬Õâ¸öµÄ×÷ÓÃÊÇ°ÑÁ½¸öcsÎļþ×°µ½Ò»¸ö.dllÎļþÀï
¾ÙÀý(ÕªÓÚÍøÂç)
Ò»¡¢ ¶¯Ì¬Á´½Ó¿â
        ʲôÊǶ¯Ì¬Á´½Ó¿â£¿DLLÈý¸ö×Öĸ¶ÔÓÚÄãÀ´ËµÒ»¶¨ºÜÊìϤ°É£¬ËüÊÇDynamic Link Library µÄËõдÐÎʽ£¬¶¯Ì¬Á´½Ó¿â (DLL) ÊÇ×÷Ϊ¹²Ïíº¯Êý¿âµÄ¿ÉÖ´ÐÐÎļþ¡£¶¯Ì¬Á´½ÓÌṩÁËÒ»ÖÖ·½·¨£¬Ê¹½ø³Ì¿ÉÒÔµ÷Óò»ÊôÓÚÆä¿ÉÖ´ÐдúÂëµÄº¯Êý¡£º¯ÊýµÄ¿ÉÖ´ÐдúÂëλÓÚÒ»¸ö DLL ÖУ¬¸Ã DLL °üº¬Ò»¸ö»ò¶à¸öÒѱ»±àÒë¡¢Á´½Ó²¢ÓëʹÓÃËüÃǵĽø³Ì·Ö¿ª´æ´¢µÄº¯Êý¡£DLL »¹ÓÐÖúÓÚ¹²ÏíÊý¾ÝºÍ×ÊÔ´¡£¶à¸öÓ¦ÓóÌÐò¿Éͬʱ·ÃÎÊÄÚ´æÖе¥¸ö DLL ¸±±¾µÄÄÚÈÝ¡£
¡¡¡¡ºÍ´ó¶àÊý³ÌÐòÔ±Ò»Ñù£¬ÄãÒ»¶¨ºÜʹÓùýDLL°É¡£Ò²Ôø¸ÐÊܵ½ËüµÄ´ø¸øÄã³ÌÐòÉè¼ÆºÍ±àÂëÉϵĺôí°É½ñÌìÎÒÏëºÍ´ó¼Ò̽ÌÖÒ»¸öÖ÷Ì⣺ÈçºÎÔÚC#´´½¨ºÍµ÷ÓÃDLL(¶¯Ì¬Á´½Ó¿â), ÆäʵÔںܴóÒâÒåÉ϶ø½²£¬DLLÈÃÎÒ¸üÁé»îµÄ×éÖ¯±àдÎÒÃǵÄÓ¦ÓóÌÐò£¬×÷ΪÈí¼þÉè¼ÆÕߣ¬¿ÉÒ»¸ö¸ù¾ÝËüÀ´´ïµ½ºÜ¸ßµÄ´úÂëÖØÓÃЧ¹û¡£ÏÂÃæÎÒÀ´


Ïà¹ØÎĵµ£º

ASP.NET 2.0»º´æ (ת)

Ò»¡¢Ò³Êä³ö»º´æ
1.ÉèÖà ASP.NET Ò³»º´æµÄÁ½ÖÖ·½Ê½
1.1 ÒÔÉùÃ÷·½Ê½ÉèÖà ASP.NET Ò³µÄ»º´æ
ÒÔÉùÃ÷·½Ê½ÉèÖà ASP.NET Ò³µÄ»º´æµÄ·½·¨ÊÇÔÚÒ³ÖÐʹÓà @ OutputCache Ö¸ÁËüµÄ³£ÓÃÊôÐÔÈçÏ£º
 
³ÌÐò´úÂë
<%@ OutputCache Duration="" VaryByParam="" VaryByControl="" VaryByHeader="" VaryByCustom="" CacheProfi ......

ASP.NET×¢ÒâÊÂ項 ²¹³äÖС£¡£¡£

1£¬±¾µØÉú³ÉµÄÎļþÏòIIS¹«¿ªµÄ·¾¶Öи´ÖÆ£¬ÓÐʱ»á·¢Éú°²È«´íÎó£¬ÕâÊÇÒòΪĿ±êÎļþ¼ÐÏ£¬Ã»ÓÐȨÏÞ£¬¿ÉÒÔ¿¼ÂÇÉèÖÃEveryoneȨÏÞ,µ«Çë½÷É÷ʹÓá£
2£¬LoadÒ³ÃæµÄʱºòÈç¹û·¢Éú “ûÓÐÕÒµ½Îļþ”ÕâÑùµÄ´íÎ󣬾ÍÐèÒª²é¿´ÄãдÈëǰ̨µÄ¸÷¸öÎļþ·¾¶ÊÇ·ñÕýÈ·£¬°üÀ¨Í¼Æ¬£¬CSSÎļþ£¬jsÎļþµÈµÈ¡£
3£¬ASP ÔÚLoadÒ³ÃæµÄ¹ý³Ì£¬Ê ......

Asp.NetÎļþÏÂÔØ·½·¨¡¡²Î¿¼

Asp.NetÏÂÔØ·½·¨¡¡²Î¿¼
(1)    Ê×ÏÈ×ö³ÉÏÂÔØÎļþ¡£
¡£¡£¡£ ¡£¡£¡£
 
(2)    ×ö³ÉÏÂÔØÎļþµÄ·¾¶ÒÔ¼°ÎļþÃûÓÃsession´«µÝ¸ø´ò¿ªÒ³Ãæ
Session["FILE_PATH"] =  Â·¾¶ + "DownLoadFile.txt";
Session["FILE_NAME"] = "DownLoadFile.txt";
 
(3)    ´ò¿ªÐ ......

asp.net 2.0×¢²áiis ÎÞ·¨ÏÔʾ¸ÃÒ³

ÓÐʱºòÓÃiisÅäÖõÄÍøÕ¾£¬×ÜÊdzöÏÖÎÞ·¨ÏÔʾ¸ÃÒ³µÄÌáʾ
³öÏÖÕâÖÖÎÊÌâµÄÔ­ÒòÓжàÖÖ£¬¾ßÌåÊÇÄÄÖÖ£¬×ÜÒ²¸ã²»´óÃ÷°×£¬²»¹ý£¬Ã¿´ÎÈ¥½â¾öÕâ¸öÎÊÌâµÄʱʱºò£¬
×Ü»áÏëµ½Õâ¸ö·½·¨£º
¾ÍÊÇ.net ÖØÐÂ×¢²áiis
²Ù×÷ÊÇ£º
1.ÔÚ“¿ªÊ¼”--“ÔËÐДÖÐÃüÁîÌáʾ·ûÏ ÊäÈë“cd C:\WINDOWS\Microsoft.NET\Framework\ ......

ʵÏÖ´Óµ¯³ö´°¿ÚÖÐÑ¡ÔñÖµ (asp.net C#)

ÔÚAsp.netÖУ¬´ÓAÒ³ÃæÖе¯³öBÒ³Ã棬ÔÚBÒ³ÃæÖÐÑ¡ÔñÊý¾Ýºó£¬¹Ø±Õ²¢½«Êý¾Ý¸üе½AÒ³Ã棬ÊÇÒ»ÖÖ³£Óõķ½Ê½¡£Ö»ÊÇÎÒ¶ÔJavascript²»ÊìϤ£¬ËùÒÔµ·¹ÄÁËÒ»ÏÂÎ磬ÖÕÓÚÓÐÁËÒ»µã³É¼¨¡£
¡¡¡¡²âÊÔÏîÄ¿ÓÐÁ½¸öÒ³Ã棺Default.aspx¼°Default2.aspx£¬ÔÚDefault.aspxÒ³ÃæÉÏÓÐÒ»¸öTextBox1¼°Ò»¸öButton1£¬Button1ÓÃÓÚ´¥·¢Default2.aspx£¬TextBox ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ