473,395 Members | 2,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Asp and script

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(requ est.querystring("klient"))&adviseur=response.write (
session("Pers_ID"))&ActId=response.write(request.q uerystring("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

May 8 '06 #1
3 1274

amatuer wrote:
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(requ est.querystring("klient"))&adviseur=response.write (
session("Pers_ID"))&ActId=response.write(request.q uerystring("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?

May 8 '06 #2
no the query string does not display at all.

May 8 '06 #3
Did you try request.form() instead of request.querystring()? request.form()
is required with method=post, which looks like what you're using...

"amatuer" <nj*****@gmail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
no the query string does not display at all.

May 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
3
by: Water Cooler v2 | last post by:
Questions: 1. Can there be more than a single script block in a given HEAD tag? 2. Can there be more than a single script block in a given BODY tag? To test, I tried the following code. None...
19
by: thisis | last post by:
Hi All, i have this.asp page: <script type="text/vbscript"> Function myFunc(val1ok, val2ok) ' do something ok myFunc = " return something ok" End Function </script>
3
by: rsteph | last post by:
I have a script that shows the time and date. It's been working on my site for quite a while now. Suddenly it stops showing up, after getting my drop down menu to work. If I put text between the...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.