????? ????? ???? ??? "???? ??????" ???? ???????? ASP ?? "????? ???"

?????? ????????? ?????? ?????????
???? ???????: 928700 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

????? ???

???? ??? ??????? ????? ????? ???? ??? "???? ??????" ???? ???????? ????? ?????? ?????? (ASP) ?? "????? Microsoft ??? ???".

??????? ????

???? 1: ????? Microsoft ASP.NET

??? ?? ????? ?? ??????? ????? ASP ?? "???? ??? ?????" ??? ???? ????? ASP.NET. ?????? ??? ???? ?? ????????? ??? ????? ????? ASP.NET ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
928710????? ????? ASP.NET ???????? ????? ????? ?????? ?????? (ASP) ?? "????? ???"

???? 2: ????? ???? ????? ?? "???? ??? ?????"

  1. ??? ????? "??? ?????" ?? ?? ???? ???? ??? ???? ???? ????? ???? ???.
  2. ?? ??????? ???? ??? ??? ???? ???? ??? ?????? ?? ???? ??? ?????.
  3. ?? ??????? ????? ? ??? ??? HTML ? ?? ???? ??? ?????? HTML ??????.
  4. ?? ????? ??????? ?? ?????? ????? ???? ??????? ??? ?? ???? ????? ??????? ??? ????? (??) ? ???? ????? ??????? ??? ???? ?????? ??? ?? ???? ????? ??????? ??? ??????? (?????).
  5. ?? ???? ??? ? ???? ????? ??????? ??? ???? ???? ???? ??? ??????? ?? ?????? 4.
  6. ?? ???? ?????? ????? ???? ???? ???? QUERYTEXT ?? ?????? ?????.
  7. ?? ?????? ?????? ??????? ???? <%=Request("QUERYTEXT")%> ? ?? ???? ??? ?????.
  8. ?? ???? ??? ? ???? ????? ??????? ??? ???? ????? ?????? ???? ??? ??????? ?? ?????? 4.
  9. ?? ???? ?????? ????? ????? ????? ???? ???? QUERYFIELD ?? ?????? ?????.
  10. ???? ??? ????? ????? ?? DocAppName ?? ???? ??????.
  11. ???? ?????? ????? ???? ???????? ????? ???? ?? ???? ??? ?????.
  12. ??? ??????? ?? 10 ? 11 ?????? ????? ??????? ???????:
    • ??? ????? ????
    • ??? ?????
    • DocAuthor
    • DocTitle
  13. ???? ??? ?????
  14. ???? ??? ?????? ?????? ??? ???? ????? ??? ?? ???? ??? ????? ???????.
  15. ???? ??? ????? ??? ??? ??? ?? ???? ??? ??????.
  16. ?? ?????? ????? ???? <%=Request.ServerVariables("URL")%> ? ?? ???? ??? ????? ?????.
  17. ?? ??????? ???? ???? ??? ???.
  18. ?? ?????? ??? ????? ? ???? IndexServerTest.asp ??? ?? ???? ??? ???.

?????? 3: ????? ????????? ???????? ?? ASP ????? ??? ??????

???????? ????? ????? ??? ??? ??? ????? ???????? ???????? ?? ??? ??????? ?? "??? ???????". ?? ???? Expression Web misinterpret ????? ????? (&lt;). ??????? ?????? ??? ??? ???????? ??? ????? ???????? ???????? ?? ????? ??????? ????. ?? ?? ???? ???????? ???????? ?? "???????" ?? ?? ????? ?? "??? ???????".
  1. ?? ???? ????????? ?? ????? ?????? ???? ??? ??? ??????? ??? ????? ??? HTML.
  2. Type or paste the following code before the opening HTML tag:
    <%
      ' Force variable declaration.
      Option Explicit
    
      ' Declare all our variables.
      Dim strQueryText
      Dim strQueryField
      Dim strSQL
      Dim strName
      Dim strValue
      Dim objRS
      Dim objField
    
      ' This is the list of Index Server variables that will appear.
      ' You can customize the list of fields. For more information,
      ' see Microsoft Knowledge Base article 318387.
      Const strDisplayFields = "Rank, DocAuthor, DocAppName, DocTitle, FileName, Create, Access, Characterization, VPath"
    
      ' This is the default Index Server catalog for all Web content.
      ' For information about how to customize this, see Microsoft 
      ' Knowledge Base article 318387.
    
      Const strDataSource = "WEB"
    
      ' Get the value of the user-submitted search query.
      strQueryText = Request("QUERYTEXT")
      ' Set a default value if the user has not submitted anything.
      If Len(strQueryText) = 0 Then strQueryText = "%%"
    
      ' Get the field that the user wants to query against.
      strQueryField = Request("QUERYFIELD")
      ' Set a default value if the user has not specified a field.
      If Len(strQueryField) = 0 Then strQueryField = "DocTitle"
    %>
  3. ???? ?? ???? ???????? ???????? ??????? ??? ????? ?????:
    ' Check if the user has entered a value in the form
    If strQueryText <> "%%" Then
    <%
      ' Build the SQL statement from the user-specified options.
      strSQL = "SELECT " & strDisplayFields & " FROM SCOPE() " & _
      	"WHERE ((" & strQueryField & " LIKE '%" & strQueryText & "%') AND " & _
      	"((VPath NOT LIKE '%/_vti%') AND (VPath NOT LIKE '%/_private%')))"
    
      ' Create a recordset object.
      Set objRS = Server.CreateObject("ADODB.Recordset")
    
      ' Open the recordset by using the SQL string with the Index Server provider.
      objRS.Open strSQL,"PROVIDER=MSIDXS;DATA SOURCE=" & strDataSource
    
      ' Are there any records to show?
      If objRS.EOF Then
    
        ' Show a default message if nothing is found.
        Response.Write "No Documents were Found." & vbCrLf  
    
      ' Otherwise...
      Else
    
        ' Start a table.
        Response.Write "<table border=""1"">" & vbCrLf
    
        ' Start the row for the header section.
        Response.Write "<tr>" & vbCrLf
        ' Loop through the fields collection.
        For Each objField in objRS.Fields
          ' Get the field's name.
          strName  = objField.Name
          ' If the field has a name, escape it for HTML.
          If Len(strName)  > 0 Then strName = Server.HTMLEncode(strName)
          ' Output the field name as a table header.
          Response.Write "<th>" & strName & "</th>" & vbCrLf
        Next
        ' End the row for the header section.
        Response.Write "</tr>" & vbCrLf   
    
        ' Loop through all the records.
        While Not objRS.EOF
          ' Start a row in the data section.
          Response.Write "<tr>" & vbCrLf
          ' Loop through the fields collection.
          For Each objField in objRS.Fields
            ' Get the field's value.
            strValue = objField.Value
            ' Look for null values.
            If Len(strValue) > 0 Then
              ' If the value is not null, escape it for HTML.
              strValue = Server.HTMLEncode(strValue)
            Else
              ' Otherwise, make it a non-breaking space character.
              strValue = "&#xa0;"
            End If
          ' Output the field value as table data.
            Response.Write "<td>" & strValue & "</td>" & vbCrLf
          Next
          ' End a row in the data section.
          Response.Write "</tr>" & vbCrLf
          ' Move on to the next record.
          objRS.MoveNext
         Wend
         Response.Write "</table>" & vbCrLf
      End If
    %>
    Else
    ' User has not entered any value in search form
        Response.Write "Please enter a Search Term before submitting the form" & vbCrLf
    End if
  4. ?? ??????? ???? ???? ??? ???.

?????? 4: ?????? ???? ASP ?????

  1. ??? ????? "??? ?????" ?? ?? ???? ?????? IndexServerTest.asp.
  2. ?? ??????? ???? ??? ??? ?????? ?? ???????? ? ?? ???? ??? ???????? ???? ???? ????????.
  3. ?? ???? ????? ???? ?????? ?????. ?? ???????? ???? ??? ????? ???? ???? ????????? ????.
  4. ???? ??? ?????. ???? ??? ????? ????? ????????? ????? ?? ?? ???? ??? ??????.

???? 5: ????? ???? ASP ?????

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

??????? 1: ????? ?????? ???????

??? ?? ????? ??????? ??????? "???? ??????" ?????? ??? ???? ???, ????? ????? ????? ?????? ??? ??????? ?????? ?????. ?????? ????? ???? ??????? ???????:
  1. ?? ?????? "??? ?????" ?? ?? ??? ????? ASP ?????? ???? ??? ???????? ?? ??? ???????.
  2. ???? ??? ??? ??????? ??? ????? ??? HTML.
  3. ??? ???? ????? ?????? ?? ????????? ????????:
    Const strDataSource = "WEB"
  4. ????? ???? ??????? strDataSource ??? ??? ????????. ??? ???? ??????? ???? ????? ?? ???????? ???????? ???????:
    Const strDataSource = My_Custom_Catalog
  5. ?? ??????? ???? ???? ??? ??? ?? ?? ?????? ?????.

??????? 2: ????? ????? ?????

  1. ??? ????? "??? ?????" ?? ?? ???? ???? ??? ????? ???? ??? ???????? ?? ??? ???????.
  2. ???? ??? ??? ??????? ??? ????? ??? HTML.
  3. ??? ???? ????? ?? ???????? ???????? ?????? ???????? ???????? ???????:
    Const strDisplayFields = "Rank, DocAuthor, DocAppName"
  4. ????? ????? ?????. ?? ???? ?? ??? ??? ??????. ??? ???? ??????? ???? ????? ?? ???????? ???????? ???????:
    Const strDisplayFields = "Rank, DocAuthor, DocAppName, DocTitle"
  5. ?? ??????? ???? ???? ??? ??? ?? ?? ?????? ?????.
???? ?????? ?????? ????? ???? ????? ????????? ?????? strDisplayFields.
?? ??? ??????????? ??? ??????
??? ???????? ??????
???????????/???????? ??????? ???? ?? ?????? ??? ?????
??? ????? ??????/???????? ????? ???? ?? ?????? ?? ??????? ??? ?????? ?? ??? "???? ??????"
??????????/???????? ???? ?? ????? ?????
????????/??????????? ?????? ???? ?? ??? ?? ??? ??? ?????
DocAppName??/???????? ??????? ???? ???? ?????
DocAuthor ??/????????? ???????
DocByteCount??????? ??? ????? ?????? ?? ???????
DocCategory??/???????? ??????? ??? ??????? ?? ?????? ?? ???? ?????
DocChar????? ??????? ?????? ?? ???????
DocComments??/???????????? ??? ???????
DocCompany??/???????? ?????? ??? ????? ???????
DocCreatedTm?????/???????? ???? ?? ????? ???????
DocEditTime?????/????????? ????? ???? ?? ?????? ????? ???????
DocHiddenCount?????????? ??????? ??????? ?? Microsoft PowerPoint ????????
DocKeywords??/???????????? ???????? ???????
DocLastAuthor??/??????????? ??? ???? ?????? ???????
DocLastPrinted?????/?????? ??? ????? ???????
DocLastSavedTm?????/??? ??? ??? ??? ?? ???? ??? ???????
DocLineCount?????????? ?????? ???????? ?? ?????
DocManager??/???????? ???? ???? ???????
DocNoteCount?????????? ??????? ???? ??? ????????? ?? ??? ?????? ?? PowerPoint
DocPageCount?????????? ??????? ?? ???????
DocParaCount?????????? ??????? ?? ???????
DocPartTitles??/?????????? ????? ???????. ??? ???? ??????? ?? Microsoft Excel? ???? ?????? ??? ?????. ?? Microsoft PowerPoint ????? ??? ?????. ?? Microsoft Word? ???? ????? ????? ????????? ???????? ?? ????? ????? ????? ???????.
DocPresentationTarget??/?????????? ????? (??? 35 ?? ?? ??????? ?? ???????) ?????? ??? ??? ?????? ?? PowerPoint
DocRevNumber??/???????? ??????? ?????? ?? ?????
DocSlideCount?????????? ??????? ?? ??? ?????? PowerPoint
DocSubject??/?????????? ???????
DocTemplate??/???????? ?????? ???????
DocTitle??/?????????? ???????
DocWordCount?????????? ??????? ?? ???????
FileIndex????????????? ?????? ?????
??? ???????/???????? ?????
HitCount?????????? ???? ?????? ?? ??????? ???? ?????? ?? ??????? ?? ???
????????/??????????? ?????? ???? ????? ??? ?? ??? ??? ?????
??????????????????? ????. ??? ?????? ?????? ?? 0 ??? 1000. ???? ??????? ?????? ??? ??????? ????.
ShortFileName??/???????? ????? (8.3) ????
????????????? ??? ???????
VPath??/??????????? ??????? ???? ?????? ??? ?? ??? ??? ?????. ??? ??? ???? ???? ?? ???? ???????? ??? ?????? ???? ????? ?? ??????? ?????.
????????????/???????? ??????? ???? ??? ????? ?????

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

  • ??? ?? ??? ????? "???? ???????" ? ????? ????? ????? ???????:
    ???? Microsoft OLE DB ?? ??? "???? ???????" '80041820' ?????? ???? ??? ???????. / IndexServerTest.asp ? ??? 44
    ??? ??? ???????? ???? "???? ???????".
  • ??? ???? ?????? ??? ????? ???? ????? ??? ????? ????? ????? ???????:
    ???? Microsoft OLE DB ?? "???? ???????" ??? '8004181d' ?? ???? ???? ?????. / IndexServerTest.asp ? ??? 44
    ??? ??? ???????? ???? ?? ???? ??????? strDataSource. ??? ??? ??? ??????? ????? ????? "???? ???????".

?????

????? ?? ????????? ??? ????? ????? ?? ???? ??????? ????? ?? Microsoft Windows 2000 ???? ??? ????? ???????? ??????? ?????? ?? "????? ??????? ?? Microsoft:
185985??????? "???? ??????" ????????? ???? ????????? TAG META
256276???? ????? ???: ???? ?? ??????
229282????????? ???????? ?? ASP ?????? ??? ??? ???? ???? ????? "???? ??????"

???????

???? ???????: 928700 - ????? ??? ??????: 20/?? ??????/1427 - ??????: 1.0
????? ???
  • Microsoft Expression Web
????? ??????: 
kbmt kbexpertiseinter kbhowto KB928700 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????928700

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

 

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