????? ????? ??????? ???????? ??? ???????? ??????? ASP.NET ? Visual C#.NET

?????? ????????? ?????? ?????????
???? ???????: 306654 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

??? ??????? ???? ????? ??? ????? ???? ????? ???? ???? ????? ??????? ???????? ???????? ?? ??? "??" ????? ????? ???????? ???? ??? ???????? ??????? ASP.NET ? Visual C#. ??? ????? ?? ??? ?????? ????? ???????? Adobe Acrobat (.pdf) ??????? (?? ????? ??? ???????? ???? ???????)? ????? ????? ??? ??????? ??? ??????? ???????? ?????? ???????.

???????

  • Microsoft.NET Framework
  • ???? ??????? Microsoft Windows 2000 ?? Windows XP
  • ???? ??????? ?????? ? Microsoft (IIS)

????? ???? ASP.????? ??? NET ??????? Visual C#

???? ??? ????? ????? ????? ???? ASP.NET ??? ??? ????? ?????? ??????????:
  1. ???? Microsoft Visual Studio.NET
  2. ?? ??????? ??? ? ??? ??? ????? ??? ?? ???? ??? ???????.
  3. ??? ????? Project, ???? ??? ?????? Visual C#. ??? ?????? ???? ??? ASP.????? ??? NET.
  4. ?? ???? ???? ????? ? ???? ??????????. ?? ???? ???? ?????? , ???? ??? ??????. ??? ??? ?????? ?????? ????? ???? ?????? ? http://localhost.

????? ??? PDF ??? ???????

?????? ??????? ????? ?? ??? ????? ????? ?????? ????????? ???????? ????? ????? ???? ASPX ?????? ????????? ??? ????? ????? ??? Adobe Acrobat (.pdf) ??? ?????? ???????. ?????? ???? ?? Visual Studio.NET? ???? ??????? ???????:
  1. ?? "?????? ??????"? ?? ?????? ?????? ??? ?????? ??????? ????? ??? ?????? ??? ?? ???? ??? ????? ???? ?????.
  2. ?????? ?????? ??? ???? ???.pdf ??? ????? ?? ????.
  3. ???? ?????? ????? ??? ?? ???? ??? ???.
  4. ?? Visual Studio.NET ?????? ??????? ???? ????? ??????? ??? ???? ??? ?? ???? ??? ????? ?????. ????? ????? ???.pdf ???? ????? ??? ????? Acrobat.pdf ???? ??? ???????? ?? ????????? ???????? ??????.
???????? ??? ???? ???? ?? ????? ?????? Adobe Acrobat Reader ??? ????????? ?????? ???? ??? ??? ??????.aspx ??? ????? ???????? ???? ???? ????? ???? ???????? ????????. ????? ????? Adobe Acrobat ???? ?? ???? Adobe ??? ????? ??????:
http://www.adobe.com

????? ???? ASPX

  1. ????? ????.aspx ????? ???? "BinaryData.aspx" ??? ?????? ??????? ??? ???:
    1. ?? "?????? ??????"? ?? ?????? ?????? ??? ?????? ??????? ???? ??? ?????? ??? ?? ???? ??? ????? ????? ???.
    2. ??? ???? BinaryData.aspx? ??? ?? ???? ??? ???.

      ??????: ???? ?? ?? ??? ????? ?????? ?????? ?? ??????? ?? ????? ???? ????? ????.pdf ???? ??? ??????? ?? ?????? ??????. ??? ???? ??? ???? ?????? ???????? ???????? ???? ???? ??? ???? ??????? ???.pdf.
  2. ?? "????"? ???? ????? ??????? ??? BinaryData.aspx??? ?? ???? ??? ??? ????????? ????????.
  3. ????? ???????? ???????? ???????? ???? ????? ??????? ??? ?????? ? ?? ???? ??? ???. ?? ????? Page_Load ?? ???? ????????? ???????? ???? ???? ??? ??? ?? ??????? ????? ???? ????????? ????????:
    private void Page_Load(object sender, System.EventArgs e)
    	{
                 //Set the appropriate ContentType.
    	    Response.ContentType = "Application/pdf";
                 //Get the physical path to the file.
    	    string FilePath = MapPath("acrobat.pdf");
                 //Write the file directly to the HTTP content output stream.
    	    Response.WriteFile(FilePath);
                Response.End();
    	}
    					
  4. ?? ??????? ??? ? ???? ??? ??? ????.
  5. ?? ??????? ????? , ???? ??? ?????.
  6. ?????? ????????? ????????? ?? ?????? ?????? ??? BinaryData.aspx ?? "?????? ??????"? ??? ?? ???? ??? ????? ????? ?? ??????. ??? ?? ???????? ???? ??? ??? ???? ???? ????? ?? ????????.
??????: ??? ??? ???? ??????? ????????? ???????? ??????? ???? ???????? ???????? ?????? ????? ???????? ??? ????? ?????? ?? ????? ??? ??????? ??? ???? ????? ????? ???????. ????? ???? ???? ??? ??????? ???? ????? ???? "???/?????" ??? ???? "?????" ??? ??????? ????? ? "??? ????" ?? ??? ????? ????. ????? ??????? ???????? ?? ????? ????????? ???????? ???? ??????? ??????? ?? ?????? ??? ?? ??????? HTTP ??????. ???? ??????? ??????? ??? ????? ???????? ?? ??? ??????? :
  • "text/HTML"
  • "????/GIF"
  • "????/JPEG"
  • "??/????"
  • "?????/???" (?????? Microsoft Word)
  • "?????/?-?????" (? Microsoft Excel ?????)

?????

?????? ??? ???? ?? ?????????? ???? ???????? ??????? ?? .????? NET ???? ?????? ????? Kit (SDK):
????? HttpResponse.WriteFile

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

.NET Framework SDK

.NET Framework ????? ?????
?????? ??? ??????? ?????? ??? ????? ????? ??? ?????? ???????? Microsoft ????? ?????? ?????? (ASP)? ???? ??? ??? ??????? ????? ??? ??? ??????? ?? "????? ??????? ? Microsoft":
276488 ????? ??????? ???? ADODB.???? ????? ?????? ??????? ???????? ??? ???????? ?? ???? ASP
???? Microsoft ??????? ???? ?????? ???????? ?? ?????? ??? ????? ?????. ?? ????? ??????? ??????? ??? ???? ?????. ??? ???? Microsoft ??? ??? ??? ?????? ???????.

?????? ?????? ???? ???? ??? ???????? ?? ??? ??????? ????? ?????? ?????? ?? Microsoft. ???? Microsoft ?? ???? ????? ?? ???? ???? ???? ????? ?????? ?? ?????????? ?? ??? ????????.

???????

???? ???????: 306654 - ????? ??? ??????: 22/???/1433 - ??????: 1.0
????? ???
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
  • Microsoft Visual C++ .NET 2003 Standard Edition
  • Microsoft Visual C# .NET 2002 Standard Edition
????? ??????: 
kbhowtomaster kbmt KB306654 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????306654

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

 

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