473,406 Members | 2,769 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,406 software developers and data experts.

From w/ Mulpiple outputs

wg
I am new to programming in ASP so please forgive me if this seems trivial. I
am editing a page someone else created. The page loads a list from a
database, based on the selections (by clicking on the an item in the list it
gets highlighted) the user has the option of pressing a button to reload the
page with just what they have chosen all same page but calls others for
queries and such. This page contains a <form> then has the button to reload
with the selected events then </form>.

I am trying to add the function to output the selected events to Excel,
which I have been able to do by changing the page. The problem is we would
like two buttons, one to output to a web page, the other to a Excel. Is
possible to have two submit buttons in a form, one for web output and the
other for Excel?

Thanks

wg
Jul 19 '05 #1
3 1363
wg wrote:
...Is possible to have two submit buttons in a form


yes - make sure each button has a diferent 'value' so your server-side
script knows which was clicked.

--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #2
Could you please explain a little more, how do I structure it with the Form
tag?

Thanks
"William Tasso" <ng*@tbdata.com> wrote in message
news:#0**************@TK2MSFTNGP12.phx.gbl...
wg wrote:
...Is possible to have two submit buttons in a form


yes - make sure each button has a diferent 'value' so your server-side
script knows which was clicked.

--
William Tasso - http://WilliamTasso.com

Jul 19 '05 #3
In your form:

<form name="..." method="..." action="...">
....

<input type="Submit" name="cmdSubmit1" Value="Button 1 Text">
<input type="Submit" name="cmdSubmit2" Value="Button 2 Text">
</form>

In your processor:

If (Request.Form("cmdSubmit1") <> "") Then

' The button labelled 'Button 1 Text' was clicked.

ElseIf (Request.Form("cmdSubmit2") <> "") Then

' The button labelled 'Button 2 Text' was clicked.

End If

Try that.

Alan

"Wade Greene" <wg@noway.com> wrote in message
news:vj************@corp.supernews.com...
Could you please explain a little more, how do I structure it with the Form tag?

Thanks
"William Tasso" <ng*@tbdata.com> wrote in message
news:#0**************@TK2MSFTNGP12.phx.gbl...
wg wrote:
...Is possible to have two submit buttons in a form


yes - make sure each button has a diferent 'value' so your server-side
script knows which was clicked.

--
William Tasso - http://WilliamTasso.com


Jul 19 '05 #4

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

Similar topics

40
by: Peter Row | last post by:
Hi all, Here is my problem: I have a SQL Server 2000 DB with various NVarChar, NText fields in its tables. For some stupid reason the data was inserted into these fields in UTF8 encoding. ...
9
by: Anon Email | last post by:
Hi people, I'm learning about header files in C++. The following is code from Bartosz Milewski: // Code const int maxStack = 16; class IStack
2
by: Julian | last post by:
I would like to have output from my program to be written to cout as well as a file. (actually, i want several other output options but this should explain my problem in the simplest way). I have...
6
by: Andre Ranieri | last post by:
I'm trying to create a login page for customers to log into our corporate website, our presidents naturally wants the user and password fields to populate from a cookie so the customer doesn't have...
20
by: Development - multi.art.studio | last post by:
Hello everyone, i just upgraded my old postgres-database from version 7.1 to 7.4.2. i dumped out my 7.1 database (with pg_dump from 7.1) as an sql-file with copy-commands and to one file using...
2
by: CrazyAtlantaGuy | last post by:
I'm having a strange problem and I was hoping someone could give me some guidance. I am accessing a Microsoft SQL 2000 server through ASP scripts on our webserver. The sql server and web server...
7
by: tiger786 | last post by:
I am new to programming and studying basics in college .Can somebody write a program on this? The program should monitor a possibly infinite stream of characters from the keyboard (standard...
9
by: Clodoaldo Pinto Neto | last post by:
Output from the shell: $ set | grep IFS IFS=$' \t\n' Output from subprocess.Popen(): "IFS=' \t\n" Both outputs for comparison:
13
by: sulyokpeti | last post by:
I have made a simple python module to handle SQL databases: https://fedorahosted.org/pySQLFace/wiki Its goal to separate relational database stuff (SQL) from algorythmic code (python). A SQLFace...
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: 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
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: 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
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...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.