?????: ASP.??? ???????????? ??????

???? ?????? ???? ??????
???? ID: 307626 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
?? ???? ????? Microsoft ???? ?? ??? ???????? ???? ?????? ????? ???? ????????? ????????:
  • System.Configuration
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

??????

?? ???? ASP ???? ?? ??? ?? ????? ?????? ???? ?????? ????? ??????

???????? ASP ?? ????NET ?????? ?? ??? ?????????? ?? ?????? Microsoft ???????? ?? ????:
305140 ?????: ASP.??? Roadmap

???? ???????

???????????? ???????? ????????? ?? ?? ??? involves ???? ??????? ??????? ??????? ????? ?? ???? ?? ???? ??? ??????? ?? ??? ????????? ????? ???? ???? ?????? ???????????? ????? ?? ??? ?? ????? ?????? ???? ?? ??? ???? ??? ????????-??????? ?? ?????????-??????? ??????? ??? recompile ???? ?? ???????? ???? ?????

?? ???? ??? ????? ???????????? ?????? ???:

????????????: ??? ???? ??

?????? ????? ????? (ASP) ????????? ???????? contrast ??? ??? Microsoft ??????? ????? ???? ??? ???????? (IIS) ???????, ASP.??????????? ??????? ??? ??? ???????????? ???????? ???????? ??? ?? ??? ???? (XML) ?????? ?? ?? ???? ?? ???????? ??, ?? ?? ????? ??? ???? ?? ???????????? ???????? ?? ????? ?? ????????? ??????? ????:
  • ASP.??? ???????????? ????? ??? ?? ???????? ??? ?? ??? ?? ?????????? ???? ?? ??????? ?? ??? ???? ????????? ??? ??, ???? ???? ????????? ???? ??????? ?? ????????? ?? ??????? ???? ?? ??? ??????? ?????????? ?????????????
  • ???????????? ??????? ???? ?? ??? ?? ???? ??? ???????? ?? ????? ?? ???? ??? ???????? ?? ?? ???????????? ???????? ????? ??????? ??? ?? ????????? ???? ?? ??? ???? ??, ?? ??? ???
  • ???????????? ??????? ??????????? ???; ????????????, ?? ???? ????? ???????????? ???????? ?? ???? ???? ????
  • ?????? ASP ??? ??? ?? ???????? ???????? ??? ?? ??? ????? ?????? ???????????? ???????? IIS ???????? ???? ?? ????? ???? ??? ????? ?? ??? ???? ??? ??????? ???? ?? ??? ???????? ?? ????

????? ?????? ?? ???????????? ?????????

???? ?? ?????? ?? ???????????? ??????? ????? ??? ?? ???? ????? ??? ??? ASP ?? ??? ?????? ???? ?????? ?????????: Machine.config ?? Web.config. ????? ??????? XML-?????? ???, ?? ?? ??? ???????????? ?????? ??? ???????, Machine.config ????? ???????????? ??????? ??? ?? ???? ??? ?????? ??????????? ?? ?????, ?? ????? ??????? ?? ??? whereas Web.config ??????? ??? ??????? ASP ?? ???? ??? ???? granular ???????????? ???????? ?????? ?????????? Machine.config ?? Web.config ??? ??? ?? ???-???????

???? ??? ???? ??????? ASP ?? ??? ??????????? ???????????? ???????, ?????? ??? ????? ???? ???? ?? ??????? ????? ?????????? ????? ??? (SDK) ?????????:
ASP ?????????? ???????????? ???????
.aspx http://msdn2.microsoft.com/en-us/library/ackhksh7 (vs.71)
?? ?? .aspx ????? ?? ??? ?? ?????? ?? ?????, ???????????? ??????? ???? ?? ????? ??? ??????? ??? ???? ??? ?? ?? Web.config ????? ??? ??? ???????????? ?????? ?? ?? ??? ???????? ???? Web.config ??? ??? ?????? ????? ??? ???? ????????? ?? ????????? ?????????? ?? ??? ???? ???? ?? ?????? ??????? ???? ??, ?? Machine.config ????? ??? ????????? ???????????? ???????? ??? ??? ?? ??? ??????, ?? ?????? ???????? ?? ??? ?? ?? ???????????? ?? ????? ??? ??????? ??????? ???? ???

????? ?????? ??????? ????? ???????????? http://myserver/myapplication/mydir/mypage.aspx ?? ??? ????? ????? URL:

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
??????
?? ??????? ?? ??? ???????????? ???????????? ?????Winnt\Microsoft.net\Framework\v.???????\Config\Machine.config
??? ???? ??????Inetpub\Wwwroot\Web.config
????????? ????????Inetpub\Wwwroot\Myapplication\Web.config
???? ????????Inetpub\Wwwroot\Myapplication\Mydir\Web.config

????????, ?? Web.config ????? ???? ?? ???? ?? ?? ????? ?? Machine.config ????? ?? ???????? ???

?? ???? ??? ???? ??????? ?? ??? ???????????? ????????? ??? ????? ???? ????????? ????? SDK ?????????:
?????????? ???????????? ???????????
.aspx http://msdn.microsoft.com/en-us/library/aa720128 (v=vs.71)
????? ???? ?? ??? ??????? ?????? ???????????? ???????? ???? ???? ?? ???, ?? <location></location> ??? ??????? ?? ??????? ?? ???? ?? ?? ?????? ?? ???? ??? ????????? ????? ?? ?????? ?????????? ??? ?? ???????? ????? ???? ?? ??? ??????? ???????????? ???????? ???? ???? ????

?? ???? ??? ???? ??????? ?? ??? <location></location> ???, ??? ????? ???? ????????? ????? SDK ?????????:
???????????? ???????? <Location>
</Location>.aspx http://msdn.microsoft.com/en-us/library/6hbkh9s7 (v=vs.71)

ASP.??? ???????????? ??????

ASP.??? ??? ???????????? ?????? ????? ??? <system.web></system.web> ?????? ??? ????? ?? ??, <configuration></configuration> ???:
   <configuration>
      <appSettings></appSettings>
      <system.web>
         ...
         <webServices></webServices>
      </system.web>
   </configuration>
				
????? ?????? ??? ASP ???????? ???? ?????? ???????????? ???:

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
???????????
<appSettings></appSettings>????????? ???? ?? ???? ????????? ?? ??? ????? ????????? ?? ?????? ??? ???????? ?? ???? ??? ????????? ?? ?? ??????
<authentication></authentication>????????? ???? ?? ?????????? ?? ????? ???? ?? ??? ??? ?????? ?? ???????? ???? ?? ??? ?????????? ????
<authorization></authorization>????????? ???? ?? ????????? ?? ?????? ?? URL ???????? ?? ??? ??????? ????? ????????? ???? ???
<browserCaps></browserCaps>????????? ???? ?? ?? ???????? ?? ???????? ??? ?? ?????????
<compilation></compilation>????????? ???? ?? ??? ?? ?????? ???? ???????? ?? ASP.??? ??????
<customErrors></customErrors>?????? ???? ?? ????? ?????? ??????? ?? ???? ??? ??????? ?? ??? ?? ASP.??? ??????????
<globalization></globalization>????????? ???? ?? globalization ???????? ????????? ?? ????
<httpHandlers></httpHandlers>????? ??? URL ?????? IHttpHandler ??????? ?? ????
<httpModules></httpModules>?????? ??, ?? ??????? ??, ?? ???? ????????? ?? ???? HTTP ??????? ???? ???? ???
<httpRuntime></httpRuntime>????????? ???? ?? ASP.??? HTTP ??-???? ?????????
<identity></identity>???????? ????????? ?? ????? ??? ????????? ???
<machineKey></machineKey>????????? ???? ?? ????? ?? ??? ??????????? ?? ?????????? ?????????? ???? ???? ??????? ?? ????? ???? ?? ???? ?? ?????? ??? ?? ????? ???? ?? ?? ?????????? ????? ?? ????????? ???? ?? ??? ?????? ???? ?? ??????? ?? ?????? ???? ????? ?? ???? ???? ?? ?? ??????? ?????????? ?????
<pages></pages>????? ???-??????? ???????????? ?????????
<processModel></processModel>????????? ???? ?? ASP.IIS ??? ????? ?????? ?? ??? ????????? ???? ????????? ??? ??? ?? ?? ???? ??? Machine.config ????? ??? ???? ?? ??? ?? ??????
<securityPolicy></securityPolicy>????????? ???? ?? ????? ?????? ???? ??????? ?? ??? ????? ??????? ???? ???
<sessionState></sessionState>????????? ???? ?? ???? ????? ????????
<trace></trace>????????? ???? ?? ASP.??? ????? ?????
<trust></trust>????????? ???? ?? ??? ?????? ??????? ????????? ?? ??? ?? ???? ??????? ????? ?? ??? ????? ???? ???? ?? ??????????
<webServices></webServices>???????? ASP ?? ???????????? ??? ???????

???????????? ??????? ??????? ?? ??? ??

???????????? ??? ???????? ??????? ??????? ?? ???? ??? ????? ??, ????? ???? ?? ??? ???? ???????????? ???????? ???-???? ??? ???????? ?? ????? ?? ??? ??? ????????? ?? ??? ??? ??????? ???? intrinsic ??????????, ?? ???? ???????? ????? ????? ???? ??? ASP ?????? ?????????????

?????? ?? ???, ?? ????? ?? ???? ??? ????? ??? <browserCaps></browserCaps> ?????? Request.Browser ???????? ????????:

Microsoft Visual Basic.???
Response.Write(Request.Browser.VBScript.ToString())
				
Microsoft Visual C#.???
Response.Write(Request.Browser.VBScript.ToString());
				
???????????? ???????? ??????? ???? ?? ??? ???? ???? ?? ???? ??? ???? ??????? ?? ???, ??? ?????????? ???? ????????? ????? SDK ?? ?????????:
???????????? ???????? ?? ???????
http://msdn.microsoft.com/en-us/library/4c2kcht0.aspx

???????????? ?????? ????? ?? ???????????

.???? ??? ???????????? ??????????? ??? ????? ?? extendable. ?? ????? ?????? ?? ???????????? ??????? ?? ???? ???:
  • ????? ?? ????? ???????????? ?????? ???????

    ?? ??? ???????? ????? ASP ????? ?? ????? ?? ???? ??? ??????????? ???????????? ?????? ???????? ???? ?? Microsoft ???????? ??? ????? ?? ??? ????? ???? ?????? ?? ????? ???? ????:
    309045 ????: ????? ASP ????????? ???????????? ?????? ?????? ??? Visual C#.???
  • ????? <appSettings></appSettings> ?????? ????????? ??????? ???? ???????? ???? ?? ???? ?? ??????? ?? ??? ???????? ?? <appSettings></appSettings> , ?????? ??? ????? ???? ????????? ????? SDK ?????????:
    .aspx http://msdn.microsoft.com/en-us/library/aa903313 (v=vs.71)
    ?? ??? ??????? ???? ?? ??? <appSettings></appSettings> ??????, .config ????? ??? ?????????? ??? ?? ????? ????:
            <appSettings>
    		<add key="MySetting" value="Valuable Information" />
            </appSettings>
    						
    ???? ??? ??? ??????? ???? ?? ??? ?????????? ??? ?? ????? ????:

    ???: System.Configuration ???????? appSettings?? ??????? ??? ????? ???? ??????

    Visual Basic .???
        Label1.Text = ConfigurationSettings.AppSettings.Item("MySetting")
    					
    Visual C#.???
        Label1.Text = ConfigurationSettings.AppSettings["MySetting"];
    					

???

???? ID: 307626 - ????? ???????: 20 ??? 2012 - ??????: 1.0
???? ???? ???? ??:
  • Microsoft ASP.NET 1.0
  • Microsoft ASP.NET 1.1
??????: 
kbproductlink kbarttyperoadmap kbconfig kbinfo kbweb kbmt KB307626 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:307626

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com