ASP.NET·¾¶ÎÊÌâС½á
1.·ûºÅ“/”Ö¸³ÌÐòÔËÐÐËùÔÚ¸ùĿ¼£¬¼´IIsËùÔÚĿ¼¡£
Èç¹ûiisËùÔÚĿ¼Ϊ£ºd:\programs
½â¾ö·½°¸Îªd:\programs\d
Íøվ·¾¶Îª£ºd:\programs\d\web\
·ûºÅ“/”´ú±íµÄÊÇ£ºd:\programs£¬²»¹ÜÄãµÄÍøվǰÃæÓжàÉÙ¼¶£¬¶¼Ó¦¸Ã×÷Ϊһ¸öÕûÌå¡£
2.·ûºÅ“~/”£¬ÔòÊÇÖ¸ÍøÕ¾ËùÔÚ¸ùĿ¼¡£¼´d:\programs\d\web¡£
²âÊÔ´úÂëÈçÏ£º
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write(Server.MapPath("/"));
Response.Write("<br/>");
Response.Write(Server.MapPath("~/"));
}
Êä³ö½á¹û£º
C:\inetpub\wwwroot\
D:\Programs2008\WebSite2\
Ïà¹ØÎĵµ£º
ASP ÊÇÒ»Ïî΢Èí¹«Ë¾µÄ¼¼Êõ£¬ÊÇÒ»ÖÖʹǶÈëÍøÒ³ÖеĽű¾¿ÉÓÉÒòÌØÍø·þÎñÆ÷Ö´ÐеķþÎñÆ÷¶Ë½Å±¾¼¼Êõ¡£ Ö¸ Active Server Pages£¨¶¯Ì¬·þÎñÆ÷Ò³Ã棩 £¬ÔËÐÐÓÚ IIS Ö®ÖеijÌÐò ¡£
IIS
¡¡¡¡IIS Ö¸ Internet Information Services£¨ÒòÌØÍøÐÅÏ¢·þÎñ£©
¡¡¡¡IIS ÊÇ Windows 2000 À¦°óµÄÃâ·Ñ×é¼þ
¡¡¡¡IISͬʱҲÊÇ Windows NT ......
½ñÌìÒª×öºÃÒ»µãµÄµÇ½¿ò½á¹û¾ÍÏë×ö¸öÈ«¾ÖµÄÅжÏÊÇ·ñÓû§ËùÒÔÕÒÁËÒ»ÏÂÎÄÕÂ
ÕâÀïÖ¸µÄµ¥µã£¬·ºÖ¸ÔÚWEB·þÎñ¶Ë£¬Ò»¸öÕË»§Í¬Ò»Ê±¿ÌÖ»ÄÜ´æÔÚÒ»¸öƱ¾Ý£¡
´ó¼Ò¿ª·¢ÖпÉÄܶ¼Åöµ½µÄÒ»¸öÎÊÌ⣬Ôõôʹͬһ¸öÓû§£¬ÔÚͬһʱ¼äÄÚÖ»ÔÊÐíµÇ¼һ´Î¡£
ºÜ¶àÈ˶¼»áÏëµ½ÔÚÊý¾Ý¿âÖÐÓÃÒ»¸ö±êʶ×ֶΣ¬µÇ¼½øÈ¥ÖÃ1,Í˳öÖÃ0,µÇ¼ʱÅжÏÕâ¸ö×ֶΣ¬Èç¹ ......
ÔÚGlobal.asaxÖе¼ÈëÃüÃû¿Õ¼ä
<%@Global ...
<%@Import Namespace= "System.Data " %>
<%@Import& ......
´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language=”javascript”> < !– function disableOtherSubmit() {
var obj ......
AJAXÊÇAsynchronous JavaScript and XMLËõд¡£Õâ¸ö¸ÅÄî´ú±íµÄÊÇÒ»ÖÖ¼¼Êõ£¬µ±ÄúÔÚ˵“ÎÒÔÚÏîÄ¿ÖÐʹÓÃÁËAJAX¼¼Êõʱ”£¬Ö»ÊÇ´ú±íÁËÄúʹÓÿͻ§¶ËXMLHttpRequest¶ÔÏóÓë·þÎñÆ÷¶Ë½øÐÐÒ첽ͨÐÅ¡£²»¹ýÒòΪËæ×ÅAJAX¼¼ÊõµÄÔËÓÃÍùÍù»á´øÀ´·á¸»µÄ¿Í»§¶ËЧ¹û£¬Òò´Ë¶ÔAJAX¼¼ÊõµÄ¹ãÒåÀí½âÒ²¿ÉÒÔÈÏΪÕâÊÇÒ»ÖÖ²Ù×÷ ......