p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_codeclinic thread: urgent help !!!

Message #1 by "Taher Moiyed" <taherm@f...> on Mon, 21 May 2001 12:09:26
	I'm not quite sure what you're doing here.  If you make it all one form and
have a bunch of different buttons, you can do something like this:

<INPUT TYPE="button" VALUE="Button 1" onClick="document.forms[0].action 
<INPUT TYPE="button" VALUE="Button 2" onClick="document.forms[0].action 
<INPUT TYPE="button" VALUE="Hello!" onClick="document.forms[0].action 

	Otherwise you can give each button a name and when they submit, the
button's name will be passed along with the other values (however ASP
handles this method less than steller since checking a collection for a
nonexistant element does not result in an error or even a null, just an
empty string).

? Chuck

> -----Original Message-----
> From: Taher Moiyed [mailto:taherm@f...]
> Sent: Monday, May 21, 2001 12:09 PM
> To: Code Clinic
> Subject: [proasp_codeclinic] urgent help !!!
> Pz help me!!!
> i have managed to have more than one submit button onto the same
> form with
> differnt action. but the problem is the i cant pass value of my dropdown
> menu to the aspresults page.
> plz help me someone.
> thanks

  Return to Index