OrcaleÓëAsp.netµÄ¶Ë¿Ú³åÍ»¡¾Ä§ÀÖÊÓƵ www.mldn.cn¡¿
Ò³ÃæµØÖ·ÊÇ:http://www.mldn.cn/articleview/2007-2-6/article_view_1400.htm
Web·þÎñµÄinetinfo.exeÓëOracleµÄApache.exe½ø³ÌËùÕ¼ÓõĶ˿ڶ¼°üÀ¨80¶Ë¿Ú¡£
Èç¹ûÓû§ÊÇÔÚ°²×°ÁËOracleÖ®ºó£¬ÔÙʹÓÃ.NET´´½¨ASP.NETÓ¦ÓóÌÐò³öÏÖÏÂÃæÇé¿öµÄ´íÎó£º
VS.NET¼ì²âµ½web·þÎñÆ÷ÔËÐеÄÊÇASP.NET 1.0°æ£¬Òª´´½¨»ò´ò¿ªµÄÓ¦ÓóÌÐò¿ÉÒÔÅäÖóÉÓë1.0¼æÈÝ£¬µ«½«ÎÞ·¨ÔËÐÐ1.1µÄй¦ÄÜ ÔòºÜ¿ÉÄÜÊÇӦΪÉÏÃæËù˵µÄ¶Ë¿Ú³åÍ».
½â¾ö·½·¨£º
1£©ÐÞ¸ÄOracle½ø³ÌµÄ¶Ë¿Ú£º
µ½Â·¾¶ \oracle\ora90\Apache\Apache\conf ÏÂÐÞ¸Ähttpd.conf ºÍ httpd.conf.default ÄÚListen 80
ÐÞ¸ÄΪÆäËû¶Ë¿Ú¼´¿É
ÀýÈ磺
Listen 8080»òÆäËû£¬½¨ÒéÔÚ3000ÒÔÉϵĴóÒ»µãµÄÊýÖµ¡£
2£©Í£Ö¹OracleµÄHttp·þÎñÆ÷
¿ÉÒÔÖ±½ÓÓýø³Ì¹ÜÀíÆ÷ ¹Ø±ÕApache.exe½ø³Ì£¨Í¨³£Óм¸¸ö£¬ÒªÈ«²¿¹Ø±Õ£©¡£
ÕâÑù×öµÄ»°£¬Ï´ÎÖØÐÂÆô¶¯ÏµÍ³ÓÖ»á³öÏÖͬÑùµÄÎÊÌ⣬ÕâÊÇÁÙʱʹÓ÷½°¸£º£©
¾Ý˵£¬Ò²¿ÉÒÔÐÞ¸ÄWEB·þÎñÆ÷µÄ¶Ë¿Ú¡£
Ïà¹ØÎĵµ£º
Asp.net³£ÓõÄ51¸ö´úÂë(·Ç³£ÊµÓÃ)
1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
CODE:
Response.Write("<script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')</script>");
Response.Write("<script>window.location ='http://www.51aspx.com/bizpulic/upmeb.aspx'</script&g ......
csÎļþ£º
using System.IO;
string context = "";
string path = HttpContext.Current.Server.MapPath("") + "\\test\\test.html";
System.Text.Encoding code = System.Text.Encoding.GetEncoding("utf-8");
Stre ......
ÔÎÄ£ºÁõÎä
| ASP.NET ·þÎñÆ÷¿Ø¼þÉúÃüÖÜÆÚ
âÒ¶¡½âÅ£:×ÝÏòÇÐÈëASP.NET 3.5¿Ø¼þºÍ×é¼þ¿ª·¢¼¼Êõ
µÚÒ»Õ½²ÁËһЩ·þÎñÆ÷¿Ø¼þµÄ»ù±¾ÖªÊ¶£¬
ÆäÖÐasp.net·þÎñÆ÷¿Ø¼þµÄÉúÃüÖÜÆÚ£¬ÊÇ¿ª·¢¿Ø¼þµÄµÚÒ»²½£¬Ò²ÊǺËÐÄ¡£
·þÎñÆ÷¿Ø¼þÉúÃüÖÜÆÚ°üÀ¨ÒÔÏÂ11¸ö½×¶Î£º
³õʼ»¯£¨OnInit)£ºÍê³É¿Ø¼þµÄ³õʼ»¯¼°´ò¿ª¿Ø¼þµÄÊÓͼ״̬¸ ......
ÔÚASP.NET 2.0 WEÕ¾µãÉÏ£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÔÚweb.configÎļþÖмÓÈëÏÂÃæµÄ½ÚµãÀ´Ö§³ÖÌõ¼þ±àÒë¡£
<compilers>
<compiler language="c#" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"
¡¡¡¡extension ......