????? ?????? ??? MTS/ASP ????? ??? ??????? CSSI

?????? ????????? ?????? ?????????
???? ???????: 253121 - ??? ???????? ???? ????? ????? ??? ???????.
??? ????? ??? ???????. ????? "??? ??" ??? ??? ??????? ??? ????.
????? ???? | ?? ????

??????

???? ??? ??????? ????? ????? ??????? Microsoft ????????? Server/??? ????? ???? (ASP) ???? ??????? ?? ????? ?????? ??????? ?????? (CSSI) ????????. ???? ??????? ?????? ?????? ?? ??? ?? ?????? ??? ???? ???? ??????? ???? ??? ?? ??????? ????? ??.

??????? ????

?? ????? ???????? CSSI ?? ????? ?????? ????? ?????? ?? ??? ???????? ? ??????? ???? ??? tackled ???? ?? ???? ????? ????????.

??? ????? ??? ?????? ???? ?? ????? ASP ?? ??????? ?? ????? ??? ???????? ???? ????? ?? ??? HTML ????? ASP ????.

?? ???? ????? ?????? ?? ????? ?????? ??? ??? ????? ?? ??? ??? ??? ??????? ????? ?????? ??? ?????? ???? ?? CSSI ?????? ASP ???, ????? ??????? ?????? ?? ???? ??? ??? ?????? ?? ????? ASP ?????? ?????? ?? ???/??????? ???? ?? ??????. ?????? ??? ??????? ????? ??? CSSI ? ASP ?????? ?????? ???? ????? ???????:
253119????? ?????? ????????? ???????? ?? ASP ?? ????? ??? ??????? CSSI
?????? ??????? ??????? ??? ?????? ??????? ASP ???? CSSI ????????:
  1. ???? ?? ASP ?? ???? ???????? ???????? ???? ???? HTML ?????. ???? ????? ?? ???????????? ?????????:
    • ????? ?????? ????? ?????? ????? ???? HTML ??? ????? ASP ?????? ??? ?????????.
    • ????????? ???? Response.Write ??????? ?????? ?????? ??? ??????. ???? ???? ?????? ??????? ??? ?????? ??? ObjectContext ?? ???? ??????? GetObjectContext.Item("Response").
  2. ????? ?? ??? ??? ????? ??????? HTML ?????? ???????. ??? ???????? ???? ?? ???? ?? ????? ??? ????? ???????? ?? ??????? ?? ????? ????? ???????? ?????? ???? ??????? ???????? ?????.
  3. ????? ?? ?????. ?????? ?????? ??? ASP ?? ???? ???????? ???????? ???? ???? ???????? HTML ??? ????? ? ??? ???? ????? ?? ????? ?????? ????. ????? ???? (?????? ?? ????? ???) ????? ???? ?? ?????? ?? ???/????? ???????? ??? ????.

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

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

??? ????? ????????? ??? ???? "? ??? ?? ???? ???????? ????? ???? HTMLEncoded. ?? ????? ??? ??? HTMLEncode ?????? ????? ????????? ????? ?? ???? HTML. ????? ??? ?????? ?? ?????? ?????? HTML ? ?? HTMLEncode ??? ?????? ???????.

??? ????? ???? ??? ???? ?????? ASP HTMLEncode ????? ?? ????. ????? ?????? ??? ??? ?????? ?? ?????? ObjectContext.Items MTS:
sGoodHTML = GetObjectContext.Item("Server").HTMLEncode(sRawData) 
				
????: ????? ?????? ????????? ???????? ??? ???? ?????? ?? ????? ?? ?????? ?????. ?? ??? ???????? ???????? ????? ???????:
Do While Not oRecordset.EOF
     sHTML = sHTML & "<TR>" 
     sHTML = sHTML & "<TD>" & oRecordset("FirstName") & "</TD>"
     sHTML = sHTML & "<TD>" & oRecordset("Address") & "</TD>"
     sHTML = sHTML & "</TR>" 
Loop
				
????? ??? ????? ??? ???????? ???????? ???? ?? ???? ????? ????? HTMLEncoded ????? ?? ??????? HTML ???????:
Dim oServer As ASPTypeLibrary.Server

Set oServer = GetObjectContext.Item("Server")

Do While Not oRecordset.EOF
     sHTML = sHTML & "<TR>" 
     sHTML = sHTML & "<TD>" & oServer.HTMLEncode( oRecordset("FirstName")) & "</TD>"
     sHTML = sHTML & "<TD>" & oServer.HTMLEncode( oRecordset("Address")) & "</TD>"
     sHTML = sHTML & "</TR>" 
Loop

Set oServer = Nothing
				
????????? ??????? ???? ???? ???????? oServer. ??? ????? ????????? ?? ????? ?????? ???? ?? ????? ObjectContext.Item ?? ?? ???. ??? ???? ????? ????? ???? ?? ASPTypeLibrary.Server ? ???? ??? "Microsoft Active Server ???? ????? ???????."

?????? ??? ?? ???????? ????????? ???????:
  • ??? ??????? ?????? ????? ?? HTMLEncode (??? ??? ???? ??? ????? ??? HTML). ??? ???? ???? ????? ????????.
  • ???? ???? ??? ????? ?????? ???????? HTMLEncode ?? ?? ???? ASP ?????? ??? ??? ????????? ??? ???? ??????? ?????? (IIS).
  • ????? ???? (?????? ?? ????? ???) ?????? ?? ??? ?????? ??????? ???????? ?????? ?????.

?????

????? ?? ?????????? ???? ??????? ??????? ?? ????????? ??????? ??????? ?????? (CERT) ?? ????? Mellon ????:
http://www.cert.org/advisories/CA-2000-02.html
????? ?? ?????????? ???? ??? ????? ???????? ??????? ?????? ?? "????? ??????? ?? Microsoft:
252985????? ??? ?????? ?????? ??????? ?????? ??????? ???????? ??????? ???
253120????? ?????? InterDev Visual ??? CSSI ????? ??? ??????? ???? ?? ???????
253117????? ??? ????? ??? ??????? Internet Explorer ? Outlook Express CSSI

???????

???? ???????: 253121 - ????? ??? ??????: 22/???? ?????/1435 - ??????: 2.0
????? ???
  • Microsoft Transaction Services 2.0
????? ??????: 
kbnosurvey kbarchive kbmt kbcssi kbhowto KB253121 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????253121

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

 

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