Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2005, 03:17 AM
Authorized User
 
Join Date: Dec 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Two Buttons And two Different Actions

Hi Guys !
  My Problem Is This->In a page i am having two buttons.after the button press i want to display some item in the page based on the button selection.
     how to identify between two buttons
give me something new plzzz.

bye for now



MuthuKumar.AL
__________________
MuthuKumar.AL
 
Old January 18th, 2005, 04:34 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

You can pass the any identifier from thebutton when it is clicked and then display the content based on selection.

<input type=button name=a1 value="test1" onclick="Function1(1);">
<input type=button name=a2 value="test2" onclick="Function1(2);">

Om Prakash
 
Old January 20th, 2005, 08:56 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

You can also create Submit Buttons with two different Values and You can check for that Submit Button Value on the Page to do your logic.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Focus on Actions Panel Stela Flash (all versions) 1 September 29th, 2007 11:45 PM
trigger actions b00gieman Beginning VB 6 1 September 25th, 2007 07:23 AM
Custom Install Actions and the GAC eadred General .NET 8 August 22nd, 2006 08:02 AM
e-mail actions... ruhin Beginning PHP 4 May 4th, 2005 10:52 AM
User Actions ppenn Access VBA 1 May 18th, 2004 02:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.