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

Asp.netÖаÑcsÎļþ±àÒë³Édll

ÉÏ´ÎÎÒÃÇ˵µ½µÄ±àÒë³ÉµÄdllÎļþÓëcsÎļþÔÚͬһĿ¼ÖУ¬¶ø²»»á·Åµ½ÐéÄâĿ¼µÄbinĿ¼ÖУ¬ÈçºÎ×ö²ÅÄܹ»°Ñcs
Îļþ±àÒë³ÉdllÇÒ×Ô¶¯·Åµ½ÐéÄâĿ¼µÄbinÎļþ¼ÐÖÐÄØ£¿
¿ªÊ¼-------³ÌÐò-------Microsoft Visual Studio.NET 2003-------Visual Studio.NET¹¤¾ß£¬µã»÷ÆäÖеēVisual Studio.NET2003ÃüÁîÌáʾ”£¬¾Í»á½øÈëMicrosoft Visual Studio.NET 2003ÃüÁîÌáʾ´°¿Ú£¬È»ºóÎÒÃÇÓÃdosÃüÁcd£©½øÈëÒª±àÒë³ÉdllµÄcsÎļþËùÔÚµÄĿ¼£¬È»ºóÊäÈëÃüÁ
csc /out: bin\index.dll /t:library index.cs
»Ø³µ£¬¾Í»áÔÚbinĿ¼ÏÂÉú³ÉÓëcsÎļþͬÃûµÄdllÎļþ
µ«ÊÇÈç¹ûÕâ¸öcsÎļþÒýÓÃÁËbinĿ¼ÏµÄÁíÍâÒ»¸ödllÎļþÈçcomman.dll£¬ÔòÓ¦¸ÃÕâÑùÊäÈëÃüÁ
csc /out: bin\index.dll /r: bin\comman.dll /t:library index.cs
¸ø³öÎÒ×Ô¼ºµÄÒ»¸ö±àÒëʵÀý£º
Ê×ÏȽøÈëMicrosoft Visual Studio.NET 2003ÃüÁîÌáʾ´°¿Ú£¬ÔÚÃüÁîÐÐÏÂÇл»µ½cÅÌÏ£¨ÎÒ°ÑMouseGridView.cs·ÅÔÚCÅÌÏÂÃ棩
Ö´ÐÐ
C:\>csc /out:MouseOver.dll /t:library MouseGridView.cs
ÔÚ°²×°ÁËMicrosoft.NET FrameworkµÄ²Ù×÷ϵͳÉÏ£¬ÎÒÃÇ¿ÉÒÔÔÚWindowsËùÔÚĿ¼ÏÂÕÒµ½Microsoft.NETĿ¼¡£ÔÚÕâ¸öĿ¼ÏÂÃæÌṩÁËC#µÄ±àÒëÆ÷£¬CSC.EXE
ÔËÐУºcsc /target:library /out:MyDLL.DLL MySwap.cs MyMaxCD.cs
Íê³Éºó¿ÉÔÚ±¾Ä¿Â¼ÏÂÃæÕÒµ½ÎÒÃǸղÅÉú³ÉµÄMyDLL.DLLÎļþ
/target:library ±àÒëÆ÷Ñ¡Ïî֪ͨ±àÒëÆ÷Êä³ö DLL Îļþ¶ø²»ÊÇ EXE Îļþ¡£ºó¸úÎļþÃûµÄ /out ±àÒëÆ÷Ñ¡ÏîÓÃÓÚÖ¸¶¨ DLL ÎļþÃû¡£
Èç¹û/outºóÃæ²»¸úÎļþÃû±àÒëÆ÷ʹÓõÚÒ»¸öÎļþ (MySwap.cs) ×÷Ϊ DLL ÎļþÃû¡£Éú³ÉµÄÎļþΪMySwap.DLLÎļþ
OK!ÎÒÃÇ´´½¨¶¯Ì¬Á´½Ó¿âÎļþµÄÈÎÎñÍê³ÉÁË£¬ÏÖÔÚÊÇÎÒÃÇÏíÊÜÀͶ¯³É¹ûµÄʱºòÁË£¬ÏÂÃæÎÒ½«½éÉÜÈçºÎʹÓÃÎÒÃÇËù´´½¨µÄ¶¯Ì¬Á´½Ó¿âÎļþ¡£</font>
csc /target:library /out:F:\MyDLL.DLL D:\Home\MySwap.cs D:\Home\MyMaxCD.cs
¶¯Ì¬Á´½Ó¾ßÓÐÏÂÁÐÓŵ㣺
½ÚÊ¡ÄÚ´æºÍ¼õÉÙ½»»»²Ù×÷¡£ºÜ¶à½ø³Ì¿ÉÒÔͬʱʹÓÃÒ»¸ö DLL£¬ÔÚÄÚ´æÖй²Ïí¸Ã DLL µÄÒ»¸ö¸±±¾¡£Ïà·´£¬¶ÔÓÚÿ¸öÓþ²Ì¬Á´½Ó¿âÉú³ÉµÄÓ¦ÓóÌÐò£¬Windows ±ØÐëÔÚÄÚ´æÖмÓÔØ¿â´úÂëµÄÒ»¸ö¸±±¾¡£
½ÚÊ¡´ÅÅ̿ռ䡣Ðí¶àÓ¦ÓóÌÐò¿ÉÔÚ´ÅÅÌÉϹ²Ïí DLL µÄÒ»¸ö¸±±¾¡£Ïà·´£¬Ã¿¸öÓþ²Ì¬Á´½Ó¿âÉú³ÉµÄÓ¦ÓóÌÐò¾ù¾ßÓÐ×÷Ϊµ¥¶ÀµÄ¸±±¾Á´½Óµ½Æä¿ÉÖ´ÐÐͼÏñÖеĿâ´úÂë¡£
Éý¼¶µ½ DLL ¸üΪÈÝÒס£DLL Öеĺ¯Êý¸ü¸Äʱ£¬Ö»Òªº¯ÊýµÄ²ÎÊýºÍ·µ»ØֵûÓиü¸Ä£¬¾Í²»ÐèÖØбàÒë»òÖØÐÂÁ´½ÓʹÓÃËüÃǵÄÓ¦ÓóÌÐò¡


Ïà¹ØÎĵµ£º

vs2005²»Äܵ÷ÊÔASP.NET³ÌÐò

½â¾ö·½·¨£º
1.¿´¿´ÄãµÄTerminal Services·þÎñÆô¶¯Ã»ÓУ¬Èç¹ûûÓÐÆô¶¯¾Í¿ÉÒÔ½â¾öÎÊÌâ¡£
2È·ÈÏ  Machine  Debug  Manager  ·þÎñÒÑÆô¶¯
3¡¢´ò¿ªÏîÄ¿ÊôÐÔ£¬ÔÚ“Debug”(µ÷ÊÔ)Ò»ÏîÀ°Ñ“Enable the Visual Studio hosting process”(ÆôÓÃVisual Studio ËÞÖ÷½ø³Ì)Ç°µÄ¹³È¥µô¡£
4. ......

JSPÓëASP.NET¼òµ¥Ö®±È½Ï!

JSPͬÑùÊÇʵÏÖ¶¯Ì¬ÍøÒ³µÄÒ»¸öÀûÆ÷¡£ÓÉÓÚËûµÄ½Å±¾ÓïÑÔÊÇJAVA£¬ËùÒԼ̳ÐÁËJAVAÖî¶àÓŵ㡣ÄÇôÓëASPÏà±È£¬Ó¦¸Ã¿ÉÒÔ˵ASPºÍJSP»ù±¾²»ÊÇÒ»¸öµµ´ÎÉϵġ£ÄÇôASP.NETºÍJAVAÈ´ÊÇ¿ÉÒÔ¿¹ºâµÄ¡£
 JSPºÍASPÏà±È½Ï£º ÔËÐÐËٶȡ¢ÔËÐпªÏú¡¢ÔËÐÐƽ̨¡¢À©Õ¹ÐÔ¡¢°²È«ÐÔ¡¢º¯ÊýÖ§³Ö¡¢³§ÉÌÖ§³Ö¡¢¶ÔXMLµÄÖ§³ÖµÈµÈ£¬ASP¶¼²»ÊÇJSPµÄ¶ÔÊÖ¡£COM ......

asp.netÔÚiisÖÖ²¿ÊðÓöµ½µÄÎÊÌâ

ÎÊÌâ1£º
“/dsfsd”Ó¦ÓóÌÐòÖеķþÎñÆ÷´íÎó¡£
佫¶ÔÏóÒýÓÃÉèÖõ½¶ÔÏóµÄʵÀý¡£
˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆڼ䣬³öÏÖδ´¦ÀíµÄÒì³£¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔÁ˽âÓйظôíÎóÒÔ¼°´úÂëÖе¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£
Òì³£ÏêϸÐÅÏ¢: System.NullReferenceException: 佫¶ÔÏóÒýÓÃÉèÖõ½¶ÔÏóµÄʵÀý¡£
Ô´´íÎó:
Ö´ ......

ASP.NET ±àÒëºÍ²¿Êð

ÏîÄ¿ºÍÍøÕ¾µÄÇø±ð
ÏîÄ¿±àÒë³Édll£¬Íøվͨ¹ý“·¢²¼ÍøÕ¾”À´²¿Êð
²¿ÊðÄ¿µÄµØ£º/binĿ¼ÏÂ
7¸ö¶¥¼¶Ä¿Â¼¼°Æä±àÒëÇé¿ö
ÈýÖÖ²¿Êð·½Ê½¼°Æä³ÌÐò¼¯Éú³ÉÇé¿ö  £¨³ÌÐò¼¯Ó°×Ó¿½±´£©
¶¨ÖƳÌÐò¼¯Éú³É£º
<compilation>
<codeSubDirectories>
<add directoryName="vb_components"/ ......

Asp.net ºǫ́µ÷ÓÃjs·½·¨

Asp.net ºǫ́µ÷ÓÃjs·½·¨(ת)
1. ÓÃResponse.Write·½·¨
¡¡¡¡´úÂëÈçÏ£º
Response.Write("<script type='text/javascript'>alert("XXX");</script>");
´Ë·½·¨È±ÏݾÍÊDz»Äܵ÷Óýű¾ÎļþÖеÄ×Ô¶¨ÒåµÄº¯Êý£¬Ö»Äܵ÷ÓÃÄÚ²¿º¯Êý£¬¾ßÌåµ÷ÓÃ×Ô¶¨ÒåµÄº¯ÊýÖ»ÄÜÔÚResponse.WriteдÉϺ¯Êý¶¨ Ò壬±ÈÈç
Response.Write("& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ