|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can two buttons in one form call different aspx pages.
<i><b>Originally posted by : Murtaza (murtaza.hussain@cdac.ernet.in)</b></i><br />Hi,<br /><br />I have 2 buttons in asp+ , with the attribute runat="server". Now in the form tag if i write action = abc.aspx then both the buttons perform the same task. What i want is that on the onclick event of one button script should be executed which i hv written in the same page (this script gets the image from the database) and the other button should call another aspx page where all the form elements should be accesible.<br />Kindly how can i achieve this?<br />Regards,<br /><br />Murtaza.<br /><br />-- <br />Murtaza Hussain<br />CDAC<br />Pune University Campus<br />Ganeshkhind<br />Pune - 411 007<br />Phone: 565 2461/79<br />Extn: 431<br />Email: m_bunts@yahoo.com
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : Muhammad Kashif Hanif (deepindepth@hotmail.com)</b></i><br />hello!<br /><br />You can use two buttons in a single asp page by putting them in two forms ...then they can do different tasks <br />second method is that put the type = "button" rather than "submitt" of the second button and then put an event of OnClick on that button.<br />try it out<br />take care<br />bye<br /><br /><br />------------<br />Murtaza at 6/13/2001 4:02:15 AM<br /><br />Hi,<br /><br />I have 2 buttons in asp+ , with the attribute runat="server". Now in the form tag if i write action = abc.aspx then both the buttons perform the same task. What i want is that on the onclick event of one button script should be executed which i hv written in the same page (this script gets the image from the database) and the other button should call another aspx page where all the form elements should be accesible.<br />Kindly how can i achieve this?<br />Regards,<br /><br />Murtaza.<br /><br />-- <br />Murtaza Hussain<br />CDAC<br />Pune University Campus<br />Ganeshkhind<br />Pune - 411 007<br />Phone: 565 2461/79<br />Extn: 431<br />Email: m_bunts@yahoo.com
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Can two buttons in one form call different aspx pages. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|