Forums
This topic is locked
Conditional Update
31 Oct 2002 11:56:36 Q Qwerty posted:
I got the following piece of code on my redirect.asp page:<pre id=code><font face=courier size=2 id=code>
<%
If (Request.QueryString("Produkt"


Response.Redirect(rsProdukten.Fields.Item("URL"

rsProdukten("Clicks"


rsProdukten.Update
End If
%>
<%
If (Request.QueryString("Prijsvraag"


Response.Redirect(rsPrijsvragen.Fields.Item("URL"

rsPrijsvragen("Clicks"


rsPrijsvragen.Update
End If
%>
<%
If (Request.QueryString("Aanbieding"


Response.Redirect(rsAanbiedingen.Fields.Item("URL"

rsAanbiedingen("Clicks"


rsPrijsvragen.Update
End If
%>
<%
If (Request.QueryString("Proefabonnement"


Response.Redirect(rsProefabonnement.Fields.Item("URL"

rsProefabonnementen("Clicks"


rsProefabonnementen.Update
End If
%>
</font id=code></pre id=code>
The redirection works, but the field Clicks in one of the four tables needs to be updated based on the URL the user is redirected to. Someone with the solution?