473,395 Members | 1,885 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.

Accesing objects on form

Hi All,

How can I access the ID of the Submit button in the following example.
(This form POST to itself). I use these 2 submit buttons to navigate
from page to page in a recordset.

Response.Write "<FORM NAME=FrmPickProd METHOD=POST ACTION=PickProd.asp>"

Response.Write "<INPUT ID=0 TYPE=submit NAME=NextPage VALUE=" &
sPreceding & ">"
Response.Write "<INPUT ID=1 TYPE=submit NAME=NextPage VALUE=" &
sFollowing & ">"

thank you in advance
serge
Jul 19 '05 #1
2 1096
Serge Myrand wrote on 30 jun 2004 in
microsoft.public.inetserver.asp.general:
How can I access the ID of the Submit button in the following example.
(This form POST to itself). I use these 2 submit buttons to navigate
from page to page in a recordset.

Response.Write "<FORM NAME=FrmPickProd METHOD=POST ACTION=PickProd.asp>"

Response.Write "<INPUT ID=0 TYPE=submit NAME=NextPage VALUE=" &
sPreceding & ">"
Response.Write "<INPUT ID=1 TYPE=submit NAME=NextPage VALUE=" &
sFollowing & ">"


A clientside question.

OT on this Serverside ASP NG, even if you package it in Response.writes.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
Assuming you have these submit buttons on a form:

<INPUT NAME="Preceding" TYPE="submit" VALUE="<%= sPreceding %>">
<INPUT NAME="Following" TYPE="submit" VALUE="<%= sFollowing %>">

And when receiving the post to see which of the above was the button
clicked on:

If Request.Form("Preceding") <> "" Then
...
Elseif If Request.Form("Following") <> "" Then
...
End If

Best regards,
J. Paul Schmidt, Freelance ASP Web Designer
http://www.Bullschmidt.com
ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3

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

Similar topics

3
by: ak | last post by:
Hi, I want to access JavaScript in JSP. My problem is - I am getting a value from a combo box and using this value to set value of a variable in JS function. I want to use this variable in...
8
by: srinivas.aki | last post by:
Hello Guys This is the small script I have. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html...
6
by: John | last post by:
Hi I have a main form which has a panel which contains a child form using the code; mainform.myPanel.Controls.Add(childform) So hierarchy is like this; MainForm->Panel->ChildForm. My question...
3
by: julian_m | last post by:
A short piece of code which i'm having problems with: class ClsX{ var $F_name; var $F_array_of_obj= array(); function ClsX(&$obj, $name){ //Here I add an object reference to an array. Note...
4
by: Pk | last post by:
Hi, Im having a problem in forms. I have a mdi parent form named Main, and a child form named form1. >From Main form, i have a certain menu item that when clicked, it opens form1. But the...
2
by: ras26 | last post by:
I have a WebSite "App1" which has an external assembly "Lib1". Inside this external assembly we have developed some classes that derive from "System.Web.UI.Page". One of these pages is called...
4
by: sracherla | last post by:
Hello Guys, Please look at the code sample below. Class Customer { private string _ID; private string _Name; public string ID
16
by: Mike | last post by:
Hi, I have a form with some controls, and a different class that needs to modify some control properties at run time. Hoy can I reference the from so I have access to its controls and...
2
by: zandiT | last post by:
Hey, FRMLOGIN CODE Private Sub Form_Load() If userdeptid = 1 then me.Controlname.visible = false end sub i managed to get the swichboard to open from a succesful login but now i want...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.