Home All Groups Group Topic Archive Search About


Author
8 May 2006 9:01 AM
amatuer
Iv gt an asp page that has two buttons on it.
one button uses a form and the other uses scrpit to go to the next
page.
I need both buttons to submit data.
Iv usesd this on page1:

public varform
varform = ""
'"Activity_Rpt_Inv4.asp?klient=response.write(request.querystring("klient"))&adviseur=response.write(
session("Pers_ID"))&ActId=response.write(request.querystring("ActId"))"

<script type="text/vbscript" language="VBScript" event="onClick"
for="btnPrint">
                        InvDisp.action = "Activity_Rpt_Inv5.asp?klient=<%=
request.querystring("klient") %>&adviseur=<%= session("Pers_ID")
%>&ActId=<%= request.querystring("ActId") %>"
                        InvDisp.submit

</script>

<form action=<%= varform %> method="post" name="InvDisp">

But they nt working. The code used to go to a page using the scrpit
works in the sense that it goes to the pasge,bt the data is nt
transferred.

please help

Author
8 May 2006 12:16 PM
Larry Bud
amatuer wrote:
Show quote
> Iv gt an asp page that has two buttons on it.
> one button uses a form and the other uses scrpit to go to the next
> page.
> I need both buttons to submit data.
> Iv usesd this on page1:
>
> public varform
> varform = ""
> '"Activity_Rpt_Inv4.asp?klient=response.write(request.querystring("klient"))&adviseur=response.write(
> session("Pers_ID"))&ActId=response.write(request.querystring("ActId"))"
>
> <script type="text/vbscript" language="VBScript" event="onClick"
> for="btnPrint">
>                         InvDisp.action = "Activity_Rpt_Inv5.asp?klient=<%=
> request.querystring("klient") %>&adviseur=<%= session("Pers_ID")
> %>&ActId=<%= request.querystring("ActId") %>"
>                         InvDisp.submit
>
> </script>
>
> <form action=<%= varform %> method="post" name="InvDisp">
>
> But they nt working. The code used to go to a page using the scrpit
> works in the sense that it goes to the pasge,bt the data is nt
> transferred.
>
> please help

Not transferred in what sense?  Can you see the querystring in the URL?
Author
8 May 2006 12:30 PM
amatuer
no the query string does not display at all.
Author
8 May 2006 2:07 PM
Aaron Bertrand [SQL Server MVP]
Did you try request.form() instead of request.querystring()?  request.form()
is required with method=post, which looks like what you're using...



Show quote
"amatuer" <njoo***@gmail.com> wrote in message
news:1147091438.839324.199270@y43g2000cwc.googlegroups.com...
> no the query string does not display at all.
>

AddThis Social Bookmark Button