Can you tell what button is pushed?

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

Can you tell which button was pushed via an asp script? I
have 3 buttons on a form, add another entry, done
entering, and reset. I what to know when the add another
and done entering buttons are pushed.

thanks.
 
The easiest way is to have the buttons fire off a JavaScript routine that
sets a value and submits the form. You can then use that value to determine
which button was pushed.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Author: ADO.NET and XML: ASP.NET on the Edge

****************************************************************************
****
Think Outside the Box!
****************************************************************************
****
 
I am trying to do this, but I am having trouble setting a
hidden form value in a java script and being able to read
it in my asp.
 
Give each button a name, then test for it.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Back
Top