[ASP] Wait commando voor het volgende script

Pagina: 1
Acties:

  • Lost-Viking
  • Registratie: Oktober 2000
  • Laatst online: 27-08 22:41

Lost-Viking

Log off, Live Life

Topicstarter
Ik heb het volgende script
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<%
If request.Form("Update") = "Update" then 
%>

<%
If Request.Form("Status") <> "" Then
%>
<%
if(Request.Form("Status") <> "") then comStatus__varSelect = Request.Form("Status")
%>
<%
set comStatus = Server.CreateObject("ADODB.Command")
comStatus.ActiveConnection = MM_FrameWork_STRING
comStatus.CommandText = "UPDATE WebContent_PageIDs SET Status = -1 WHERE ID IN (" + Replace(comStatus__varSelect, "'", "''") + ")"
comStatus.CommandType = 1
comStatus.CommandTimeout = 0
comStatus.Prepared = true
comStatus.Execute()
Set comStatus = Nothing
%>
<%
End If
%> 
<%
Set CommandUpdate = Server.CreateObject("ADODB.Command")
CommandUpdate.ActiveConnection = MM_FrameWork_STRING
CountTotal = Request.Form("CountTotal")
For iLoop = 1 to CountTotal

    if(Request.Form(iLoop & ".Titel") <> "") then CommandUpdate__Titel = Request.Form(iLoop & ".Titel")
    if(Request.Form(iLoop & ".Content") <> "") then CommandUpdate__Content = Request.Form(iLoop & ".Content")
    if(Request.Form(iLoop & ".ImagePosition") <> "") then CommandUpdate__ImagePosition = Request.Form(iLoop & ".ImagePosition")
    if(Request.Form(iLoop & ".ID") <> "") then CommandUpdate__ID = Request.Form(iLoop & ".ID")
    
CommandUpdate.CommandText = "Update WebContent_PageIDs Set Titel = '" + Replace(CommandUpdate__Titel, "'", "''") + "', Content = '" + Replace(CommandUpdate__Content, "'", "''") + "', ImagePosition = '" + Replace(CommandUpdate__ImagePosition, "'", "''") + "' Where ID = " + Replace(CommandUpdate__ID, "'", "''") + ""
CommandUpdate.CommandType = 1
CommandUpdate.CommandTimeout = 0
CommandUpdate.Prepared = true
CommandUpdate.Execute()
Next
Set CommandUpdate = Nothing
%>
    done
<% else %>

Als het eerste commando wordt uitgevoerd en hij verder wilt gaan met het volgende commando (CommandUpdate), krijg ik een lock error van het eerste commando (comStatus). Hoe kan ik het beste hiertussen ff een wait functie inbakken ???

  • Lost-Viking
  • Registratie: Oktober 2000
  • Laatst online: 27-08 22:41

Lost-Viking

Log off, Live Life

Topicstarter
Ik heb het al anders opgelost, bedankt voor jullie hulp !

  • Basszje
  • Registratie: Augustus 2000
  • Laatst online: 17-09 12:17

Basszje

Reisvaap!]

Welke hulp :P

Beware of listening to the imposter; you are undone if you once forget that the fruits of the earth belong to us all, and the earth itself to nobody.