473,466 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Posting form

The code below doesn't work. Any help would be
appreciated. I need to force the form to submit via post
method, rather than response.redirect("Page2.asp?.....")
which doesn't post the form.

Page1 has form called "frm"

Page1 has a href link, like this, <a href="Page1.asp?
tab=aa">click here</a>

When it reloads Page1, after clicking link,

Select Case tabid
case "aa"
ViewDetail
---other case statements--
End Select
Sub ViewDetail
<SCRIPT LANGUAGE=vbs>
frm.action = "Page2.asp?tabid=ccc&Act=200"
frm.submit
</SCRIPT>
End Sub

Jul 19 '05 #1
1 1604
See if this code helps...
Regards

<HTML>
<body>
<form id="frmThis" name="frmThis">
<INPUT id="cmdPost" onclick="javascript:CallPage
('Test2.asp')" type="button" value="Post Page">

<SCRIPT LANGUAGE="javascript">
//<!--
function CallPage(pageName){
alert(pageName);
document.frmThis.method = "post" ;
document.frmThis.action = pageName ;
document.frmThis.submit() ;
}
//-->
</SCRIPT>

</form>
</body>
</HTML>
-----Original Message-----
The code below doesn't work. Any help would be
appreciated. I need to force the form to submit via post
method, rather than response.redirect("Page2.asp?.....")
which doesn't post the form.

Page1 has form called "frm"

Page1 has a href link, like this, <a href="Page1.asp?
tab=aa">click here</a>

When it reloads Page1, after clicking link,

Select Case tabid
case "aa"
ViewDetail
---other case statements--
End Select
Sub ViewDetail
<SCRIPT LANGUAGE=vbs>
frm.action = "Page2.asp?tabid=ccc&Act=200"
frm.submit
</SCRIPT>
End Sub

.

Jul 19 '05 #2

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

Similar topics

10
by: DaveFash | last post by:
Posting variables from an HTML FORM, via the Request.Form function on the receiving ASP page is great. But how can you POST a Form variable to an ASP page -- without a human pushing a Submit...
2
by: Jeff Baker | last post by:
How does one post to an ASPX page using the WebClient when the form name is required?
4
by: Stacey Levine | last post by:
Please tell me if this makes sense. I have written an ASPX page to handle and process POSTed XML data to it. I am expected the data to be in the Request.Form object. This works perfectly fine...
13
by: Ian.Suttle | last post by:
I am have been researching this issue to no end, so any help would be very much appreciated. I have a page with form tags. Inside of the form tags is a panel that contains a user control. The...
6
by: KC | last post by:
How would I post data from a listbox that allows multiple selections? How do you join the name/value pairs for the posted data? And for extra credit: Where is a page posting to when there is no...
2
by: Esa | last post by:
Hi, I'm having problems with one strange web system where submitting an application and making queries about its handling status require a series of form submits and response parsing - all in...
2
by: Peter2 | last post by:
Hi, I have a problem posting non-ASCII characters in FORM fields between classic ASP and ASP.NET. I use a fully patched Windows 2000 Advanced Server with .net 2.0 and visual Studio 2005 installed,...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
6
by: fnoppie | last post by:
Hi, I am near to desperation as I have a million things to get a solution for my problem. I have to post a multipart message to a url that consists of a xml file and an binary file (pdf)....
1
by: gnawz | last post by:
Hi guys, I have a couple of php files that perform various tasks. I will use fields in my system and provide code as well I need help as follows: My database contains the fields Category...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
1
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.