»áÔ±£º ÃÜÂ룺 ¡¡Ãâ·Ñ×¢²á | Íü¼ÇÃÜÂë | »áÔ±µÇ¼ ÍøÒ³¹¦ÄÜ£º ¼ÓÈëÊÕ²Ø ÉèΪÊ×Ò³ ÍøÕ¾ËÑË÷  
¼¼ÊõÎĵµ > Web¿ª·¢ > ASP.Net
Ç×ÃܽӴ¥ASP.Net(1)
·¢±íÈÕÆÚ£º2003-06-26 00:00:00×÷Õߣº· ³ö´¦£º  

    ASP+³öÀ´¶¼¿ì°ëÄêÁË£¬ÎÒÃÇÕ¾µãÒ²×öÁ˲»ÉٵĽéÉÜ£¬µ«ÊǽñÌì·Éµ¶ÎÒ²ÅÖÕÓÚÓÐÁËÐÄ˼À´Ð´Ò»Ï¹ØÓÚÕâ¸öASP+µÄÎÄÕÂÁË¡£ºÇºÇ,Èôó¼Ò¾ÃµÈÁË¡£

  (±¾Õ½ÚдÓÚÉϸöÊÀ¼Í£¬ËùÒÔÏÖÔÚÓÐЩ½Ð·¨ÒѾ­¸Ä±ä£¬±ÈÈçASP+ÒѾ­½ÐASP.Net£¬NGWSÒ²ÒѾ­³ÉΪÁË.Net Framework) Ê×ÏÈÎÒµÃÉêÃ÷£¬±¾½Ì³ÌÊÊÓÃÓÚÓÐÒ»¶¨ÍøÂç±à³Ì¾­ÑéµÄÈË£¬±ÈÈçasp,php,cgi,jsp¿ª·¢Õߣ¬Èç¹ûÄã¶ÔÍøÂç±à³ÌÒ»µãÒ²²»Á˽⣬ÄÇôÄú»¹ÊÇÏÈȥѧѧÆäËüµÄÓïÑÔ£¬²»È»ÒÔϵÄÎÄÕÂÄú»áÓкܶ࿴²»¶®µÄµØ·½¡£ºÇºÇ¡£

  ÎÒÃÇ¿ªÊ¼°É¡£

ASP+µÄÔËÐл·¾³

  ÎÒÃÇҪѧϰASP+£¬¾ÍÏȵøãÒ»¸öµ÷ÊÔ»·¾³³öÀ´¡£ÈÃÄãµÄ"°®¼¦"Ö§³Öasp+,ÄÇôÄúÐèÒªÒÔϵÄÌõ¼þ£º

Windows 2000 Professional, Windows 2000 Server , Windows 2000 Advanced Server

.Net Framework(ÒÔÇ°½ÐNGWS)

IE 5.5    

  ÒÔÉÏÊÇÖ§³ÖASP+µÄÐèÒª£¬´ó¼Ò¿´µ½Ä¿Ç°Ö»ÓÐWindows 2000²ÅÓа²×°.Net FrameworkµÄ¿ÉÄÜ£¬NT£¬Windows 98,Windows Me ÔÝʱ»¹Ã»Óа취֧³Öasp+,²»»áÀϸǴðÓ¦ÎÒÃÇÔÚÒÔºóµÄ°æ±¾ÖлáÔÚÆäËüµÄƽ̨ÉÏÖ§³Öasp+µÄ£¬´ó¼ÒÂýÂýµÈ°É¡£¶øÇÒ»¹²»ÊÇËùÓеÄwindow 2000¶¼¿ÉÒÔ£¬windows 2000µÄ°æ±¾ºÅÒªÊÇRC 3618ÒÔÉϵIJÅÐÐ(ÕâÊDZ¾ÈËдÕâƪÎÄÕÂʱµÄÇé¿ö£¬ÏÖÔÚÁ¬Winnt 4.0 ¶¼¿ÉÒÔÁË,98£¬MeÔÝʱֻÄÜ°²×°.Net Framework,»¹²»ÄÜÖ§³ÖASP.Net£©¡£·Éµ¶ÎÒÒÔÇ°¾ÍÊÇwindows 2000µÄ°æ±¾Ì«µÍ£¬²»µÃ²»·ÅÆúÕý°æ£¬ÂòÁËD°æ£¨È«ÊÇASP+ÈǵĻö£©¡£

.Net FrameworkÊǸö´ó¿éÍ·£¬ÓÐ111MÖ®¾Þ£¬·Éµ¶ÐÖµÜÎÒµÄСèÅÜÁË5¸öСʱ²Å°ÑËü¸ã¶¨£¬ËüµÄÏÂÔصØÖ·ÊÇhttp://download.microsoft.com/download/VisualStudioNET/Install/2204/NT5/EN-US/setup.exe ÐÒµÃM$ÓÐÇ®£¬ÏÂÔØÕ¾µãµÄ´ø¿í»¹´ó£¬ÏÂÔØËٶȻ¹¿ÉÒÔ¿©¡£´ó¼ÒÂýÂýÀ´°É¡£

  IE 5.5 ÊÇÉÏÃæ×îºÃ¸ã¶¨µÄ¶«¶«ÁË¡£Õâ¸ö¶«Î÷ÏÖÔÚÒѾ­ÊÇ·ºÀÄÁË£º£©£¬D°æµÄ²»ÉÙ£¬ºÇºÇ£¬²»ÄܳÆD°æ£¬Ëü±¾Éí¾ÍÊÇÃâ·ÑµÄ£º£©

ASP+ÓëASPµÄ±È½Ï

  ËµÆðASP+µÄºÃ´¦£¬ÄǾͺܶàÁË¡£ÎÒÃÇÕâÀï¾Ù¼¸¸ö×îÃ÷ÏԵġ£

  Ëٶȣ¬ASP+ÊDZàÒëºóÖ´Ðеģ¬Ò²¾ÍÊÇ˵µ±aspxÎļþµÚÒ»´Î±»ÇëÇóʱ±»±àÒ룬ÒÔºóµÄÇëÇó¾Í²»ÐèÒªÖØбàÒëÁË¡£¶øASPÊǽâÊÍÐԽű¾ÓïÑÔ£¬Ã¿´Î¶¼ÐèÒªÖØбàÒ룬ÕâÖÖÔ­Òò£¬ÆäËٶȾÍÎÞ·¨ºÍASP+À´±ÈÁË¡£²»¹ýASP+µÄ±àÒëËÙ¶ÈÒ²¹»ÂýµÄ£¬ÔÚ±¾µØ»úÉϵ÷ÊÔ£¬µÚÒ»´ÎÖ´ÐеÄËÙ¶ÈÊǺÜÂýµÄ¡£²»¹ýÒÔºó¾ÍºÜ¿ìÁË£¬µÚÒ»´ÎÖ´ÐеÄÈÎÎñ¾Í½»¸ø¹ÜÀíԱȥ×ö°É¡£ÎÒÃǾÍÈ¥ÏíÊÜÒÔºóµÄ¸ßËٶȰɣº£©

  ¹¦ÄÜ£¬ASP+µÄ¹¦ÄÜÊÇÎÞ±ÈÇ¿´óµÄ£¬¼¸ºõÄÜ×öÎÒÃÇÔÚÍøÂçÄÜÏëµ½µÄÊÂÇ飬ºÇºÇ£¬¾Ù¸ö¼òµ¥µÄÀý×Ó£¬ÄǾÍÊÇÎļþµÄÉÏ´«£¬ÔÚASPµÄʱ´ú£¬Õâ¸öÎÊÌâÖ»ÄÜͨ¹ý×é¼þ²ÅÐУ¬µ«ÊÇÔÚASP+ÖÐÖ»ÐèÒªÒÔϵĴúÂë¾Í¿ÉÒÔÁË¡£ÏÂÃæÊÇÒ»¸öÀý×Ó:

< html>

< head>

< script language="C#" runat="server">

void Button1_Click(object Source, EventArgs e) {

if (Text1.Value == "") {

Span1.InnerHtml = "Error: you must enter a file name";

return;

}

if (File1.PostedFile != null) {

try {

File1.PostedFile.SaveAs("c:\\temp\\"+Text1.Value);

Span1.InnerHtml = "File uploaded successfully to c:\\temp\\"+Text1.Value+" on the web server";

}

catch (Exception exc) {

Span1.InnerHtml = "Error saving file c:\\temp\\"+Text1.Value+"

"+ exc.ToString();

}

}

}

< /head>

< body>

HtmlInputFile Sample

< form enctype="multipart/form-data" runat="server">

Select File to Upload: < input id="File1" type=file runat="server">

Save as filename (no path): < input id="Text1" type="text" runat="server">

< span id=Span1 style="font: 8pt verdana;" runat="server" />

< input type=button id="Button1" value="Upload" OnServerClick="Button1_Click" runat="server">

< /form>

< /body>

< /html>

  ÏàÐÅ´ó¼Ò¶¼ÄÜ¿´¶®ÉÏÃæµÄ³ÌÐò£¬²»ÊÇÌ«ÄÑ¡£¿´¿´ÓÃASP+ÉÏ´«Îļþ¾ÍÊÇÕâô¼òµ¥£¬¸ù±¾¾Í²»ÐèҪʲô×é¼þÁË£¬ºÇºÇ£¬Ö»¿ÉÁ¯·Éµ¶ÎÒдÁË°ëÌìµÄ"aspcnUPÉÏ´«×é¼þ"£¬Ò»Æ¬ÐÄѪ¾Í±»M$¸ø¸ãÍêÁË¡£ÎÒÃǵÄ×é¼þҲҪϸÚÁË£¬°¦£¬¿É±¯°¡¡£(·Éµ¶±¯ÇéµØ³ªÆð"·çÏôÏôÙ⣬Ò×Ë®º®£¬×³Ê¿Ò»È¥²»¸´·µ......"£©

  ASP+ÄÜ×öµÄÊÂÔ¶²»Ö¹Èç´Ë£¬ÕâÀïÖ»ÊǾٸöСÀý×Ó,ËüµÄ¸ü¶à¹¦ÄÜÎÒÃÇÒÔºóÔÙÈ¥½éÉÜ£¬ºÇºÇ¡£

  ASP+»¹ÓÐÒ»´óÓŵã¾ÍÊǽṹ»¯±à³Ì,ËûµÄ³ÌÐòÓïÑÔ¿ÉÒÔ×ÔÒÑÈÎÒâ¼Ó£¬Ä¿Ç°Ö§³ÖC#,VB,JavaScript,ºÇºÇ£¬´ó¼ÒÊDz»ÊǶԲ»Ö§³ÖVBScript¸Ðµ½Ê§Íû £¿£¡£º£©ÕâÊÇ´óÊÆËùÇ÷£¬´ó¼ÒÒ²²»±ØʧÍûÀ²£¬ÎÒÒÔºóµÄÎÄÕµÄÀý³Ì¶¼»áÓÃC#ȥд£¬ºÇºÇ£¬Èç¹ûÄãÖÓÇéÓÚVB£¬ÄãÒ²¿ÉÒÔ¿´¿´±¾Õ¾Ò»Æª¹ØÓÚVBÓëC#Óï·¨±È½ÏµÄÎÄÕ£¬ºÜÈÝÒ×ÉÏÊֵġ£¶ÔÓÚC££,´ó¼Ò¿ÉÄܱȽÏÄ°Éú£¬²»¹ýÎÒÃÇ¿´¿´ÉÏÃæµÄ³ÌÐò£¬·¢ÏÖËû»¹ÊÇÓкܶàµØ·½ÊÇÎÒÃÇÈÝÒ×ÉÏÊֵġ£ÎÒ¸öÈËÈÏΪËüÊÇC++ÓëVBÓëJavaµÄ½áºÏÌ壬Ҳ¿ÉÄÜÊÇM$ÐûÕ½JavaµÄµÚÒ»²½,´ó¼ÒÓöàÁ˾ͻá¾õµÃËûºÃ´¦¶à£º£©

  Ð´ASP+³ÌÐò£¬Äã»á¾õµÃÊÇÔÚдVB»òÕßÊÇVC£¬ºÜ¶àµÄ˼ÏëÈ«¶¼À´×ÔÓÚVB,VC£¬¿ÉÄÜÊÇMS.NETµÄÔ­Òò°É¡£ËùÒÔÎÒÃÇд³ÌÐòµÄ˼άÐèÒª¸Ä±ä£¬ÒªÈÃÄã×ÔÒѸоõÕâÊÇÔÚдÈí¼þ£¬²»ÊÇÔÚд´«Í³µÄasp³ÌÐò¡£

  ÖÁÓÚASP+»¹ÓеÄһЩ¹¦ÄÜ£¬ÎÒÃÇÕ¾µãÒÔÇ°µÄÎÄÕÂÒ²½éÉÜÁË£¬ºÇºÇ£¬´ó¼Ò²é²é£¬ÎÒÃÇÒÔºóÒ²»áͨ¹ý³ÌÐòÈ¥Á˽⣬ֻ¿Éϧ£¬ÎÒÃÇ·þÎñÉ̵ķþÎñÆ÷²»ÄÜʹÓÃasp+,·ñÔòÎÒÃÇ»á¸ü¶àÁ˽âµÄasp+µÄÌØÐÔ¡£

  ÁíÍâÒ»¸ö´ó¼Ò¹ØÐĵÄÎÊÌâ¾ÍÊÇ£¬×°ÓÐNGWSµÄWindows 2000ÊÇ·ñ»¹Ö§³Öasp,µ£ÐÄÎÒÃÇÓÐÁËaspx£¬¾ÍûÓÐÁËasp,ÒÔÇ°µÄ³ÌÐò¾ÍÈ«ÍæÍêÁË¡£Õâ¸öÎÊÌâ´ó¼Ò¸ù±¾²»Óõ£ÐÄ£¬NGWSÉè¼ÆʱM$¾Í¿¼Âǹý£¬NGWSͬÑù¿ÉÒÔ½âÎöasp,ÎļþµÄÀ©Õ¹ÃûÊÇ.asp£¬ÄǾÍʹÓÃaspµÄ·½·¨½âÎö£¬Èç¹ûÊÇ.aspx¾ÍʹÓÃasp+À´½âÎö£¬ËùÒÔÄúÒÔÇ°µÄaspÊDz»»á±¨ÏúµÄ¡£¹þ¹þ£¬´ó¼Ò¿ÉÒÔ·ÅÐÄÀ²¡£·Éµ¶µÄ»úÆ÷ÉϾÍÊÇÕâÑùµÄ¿©¡£aspx,asp¶¼¿ÉÒÔÓ㺣©

  ÕâµÚÒ»½Ú¾Íµ½Õâ¶ùÁË£¬ÏÂÒ»½Ú£¬ÎÒÃǽéÉÜһϣ¬asp+µÄÓï·¨£º£©,´ó¼Ò¶à¶àÅõ³¡¡£  

¡¡

¡¾·µ»Ø¶¥²¿¡¿ ¡¾´òÓ¡±¾Ò³¡¿ ¡¾¹Ø±Õ´°¿Ú¡¿

¹ØÓÚÎÒÃÇ / ¸øÎÒÁôÑÔ / °æȨ¾Ù±¨ / Òâ¼û½¨Òé / ÍøÕ¾±à³ÌQQȺ   
Copyright ©2003- 2024 Lihuasoft.net webmaster(at)lihuasoft.net ¼ÓÔØʱ¼ä 0.0039