Dim strSearchText strSearchText = Request("SearchText")
Dim strSearchMappe strSearchMappe = Request.Form("Mappe")
If strSearchText = "" Then error = error & "Du må søke etter noe. " End if
If Len(strSearchMappe) > 14 Then error = error & "Du kan bare velge en mappe å søke i. " End if
If strSearchMappe = "" Then error = error & "Du må velge hva du skal søke i. " End if
If error <> "" Then Response.Clear %><html> <body onload="window.alert('En feil oppstod! <% =error %>'); window.history.back();"> </body></html><% Response.End End If
Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Dim strSti strSti = "../wwwroot/" & strSearchMappe
Dim objFolder Set objFolder = objFSO.GetFolder(Server.MapPath(strSti))
Dim objFile, objTextStream, strFileContents, bolFileFound bolFileFound = False
For Each objFile in objFolder.Files If Response.IsClientConnected then Set objTextStream = objFSO.OpenTextFile(objFile.Path,fsoForReading)
<% 'NÅ KOMMER DET RIKTIG, DU KAN SELV VELGE AND,OR,NOT 'SØKER IGJENNOM ALLE ASP FILER SOM LIGGER I MAPPEN DU VELGER. Const fsoForReading = 1
Dim strSearchText strSearchText = Request("SearchText")
Dim strSearchMappe strSearchMappe = Request.Form("Mappe")
If strSearchText = "" Then error = error & "Du må søke etter noe. " End if
If Len(strSearchMappe) > 14 Then error = error & "Du kan bare velge en mappe å søke i. " End if
If strSearchMappe = "" Then error = error & "Du må velge hva du skal søke i. " End if
If error <> "" Then Response.Clear %><html> <body onload="window.alert('En feil oppstod! <% =error %>'); window.history.back();"> </body></html><% Response.End End If
Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Dim strSti strSti = "../wwwroot/" & strSearchMappe
Dim objFolder Set objFolder = objFSO.GetFolder(Server.MapPath(strSti))
Dim objFile, objTextStream, strFileContents, bolFileFound bolFileFound = False
For Each objFile in objFolder.Files If Response.IsClientConnected then Set objTextStream = objFSO.OpenTextFile(objFile.Path,fsoForReading)
//soeklogg.asp filen <% 'NÅ KOMMER DET RIKTIG, DU KAN SELV VELGE AND,OR,NOT 'SØKER IGJENNOM ALLE ASP FILER SOM LIGGER I MAPPEN DU VELGER. Const fsoForReading = 1
Dim strSearchText strSearchText = Request("SearchText")
Dim strSearchMappe strSearchMappe = Request.Form("Mappe")
If strSearchText = "" Then error = error & "Du må søke etter noe. " End if
If Len(strSearchMappe) > 14 Then error = error & "Du kan bare velge en mappe å søke i. " End if
If strSearchMappe = "" Then error = error & "Du må velge hva du skal søke i. " End if
If error <> "" Then Response.Clear %><html> <body onload="window.alert('En feil oppstod! <% =error %>'); window.history.back();"> </body></html><% Response.End End If
Dim objFSO Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Dim strSti strSti = "../wwwroot/" & strSearchMappe
Dim objFolder Set objFolder = objFSO.GetFolder(Server.MapPath(strSti))
Dim objFile, objTextStream, strFileContents, bolFileFound bolFileFound = False
For Each objFile in objFolder.Files If Response.IsClientConnected then Set objTextStream = objFSO.OpenTextFile(objFile.Path,fsoForReading)
Dim strSti strSti = "../wwwroot/test/database.mdb" & strSearchMappe har jeg ændre med hvordan ændre jeg mapper jeg har en tabel der hedder "bruger" den skal kigge ned i..
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.