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

?????? ????????? ?????? ?????????
???? ???????: 307626 - ??? ???????? ???? ????? ????? ??? ???????.
???? ??? ??????? ??? Microsoft ???????.NET Framework ??? ????? ????? ????? ???????:
  • System.Configuration
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????? ??? ASP.NET ???????? ???? ????.

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

??????? ????

????? ????? ?? ??? ????? ?? ??????? ??????? ??? ??????? ????? ???????? ??? ?????? ?????? ???????? ??? ????? ??? ?? ??? ?????? ???????. ????? ??????? ?????? ???? ????????? ?????? ?????????? ??????? ?????????? ???? ????? ??????? ??? ?????? ??? ????? ????? ????????? ????????.

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

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

????? ?????? ?????? ?????? (ASP) ????? ????????? ??????? ?? "????? ??????? ??????" ??????? (IIS) ?? ASP.??? ????? ??????? ??????? NET ?? "??????? ????? ????????" ????? ??? (XML). ???? ???? ??????? ??????? ??? ?????? ??? ????? ??????? ??????? ???? ?????????:
  • ????? ASP.??? ????? ????? ????? NET ?? ??? ???? ????? ????. ??? ?????? ????? ??? ??? ??? ???? ????? ?????? ??? ?? ?? ??????? ???????? ???????.
  • ????? ??????? ???? ???? ??????? ?????? ????? ?????. ???? ???? ?? ????? ????? ??????? ????? ??? ?????? ? ?? ???.
  • ????? ??????? ??????? ???????? ??????? ????? ????? ????? ????? ??????? ????? ?????.
  • ?????? ???????? ?????? ?? ????????? ??? ASP.NET ????? ???????. ?? ???? ????? ????? IIS ?? ??? ????? ???? ??? ????? ????????? ????? ???????.

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

???? ????? ?? ????? ??????? ???? ??? ?? ????? ? ASP.NET ???????: Machine.config ? Web.config. ?? ?? ??????? ???????? ??? XML ?????? ??? ????? ????? ?????. ??? ????? ?? ???? ????? ??? Machine.config ??? ??????? ??????? ??? ????.NET ????? ?????? ??? ????? ???? ?? ??????? ????? Web.config ????? ??????? ??? ??????? ??????? ???? ??????? ??? ASP ?????.NET ?????????. ???? ?? Machine.config ? Web.config ???? ???? ??????.

????? ?? ????????? ??? ??????? ASP.NET ????? ???????? ???? ??????? ?????? ??.NET Framework ????? ????? ??????? (SDK) ????????:
????? ASP.NET ????? ???????
.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:

?? ??? ??????????? ??? ??????
?????????
??????? ??????? ???? ??????? ??.NET ????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.

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

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

????? ASP.NET ????? ???????

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

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

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

???? ??????? ????????? ???? ?? ??????? ?? ??????? ?????? ???? ???????? ????? ??????? ????? ?????. ??? ??? ??? ????????? ?????? ???????? ???????? ???????? ???? ?? ???? ?????? ????? ????? ?????? ??? ??????? ???????? ??? ????? ASP.NET.

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

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

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

.NET Framework ????? ??????? ???? ???? ??????? ???????. ???? ??????? ???? ?? ???? ???????:
  • ????? ????? ???? ????? ????.

    ??????? ??????? ??? ????? ????? ????? ???? ASP.??????? ?????? ????? NET? ???? ??? ??? ??????? ?????? ?????? ?? ????? Microsoft ?????:
    309045 ?????: ????? ???? ? ASP.????? ???? ??????? NET ?? Visual C#.NET
  • ??????? <appSettings></appSettings> ?????? ?????? ?????? ????? ?? ???????. ?????? ??? ????????? ??? ???? ???? <appSettings></appSettings> ?????? ???? ??????? ?????? ??.NET Framework 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 .NET
        Label1.Text = ConfigurationSettings.AppSettings.Item("MySetting")
    					
    Visual C#.NET
        Label1.Text = ConfigurationSettings.AppSettings["MySetting"];
    					

???????

???? ???????: 307626 - ????? ??? ??????: 30/???/1433 - ??????: 1.0
????? ???
  • Microsoft ASP.NET 1.0
  • Microsoft ASP.NET 1.1
????? ??????: 
kbproductlink kbarttyperoadmap kbconfig kbinfo kbweb kbmt KB307626 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????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