| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I have a html Page that contains submit,edit,delete,reset buttons. I can give only one action in a form,and that for submit button. How can i write the code for delete ,edit,reset buttons to go to corresponding Asp pages. |
|
#2
|
|||
|
|||
|
One thing you could do is the following.
If you haven't already done it give the edit and delete buttons names and have a hidden field for the record id number. <input name=id type=hidden value=<%=rs("id")%>> <input name=delete type=submit value=Delete> <input name=delete type=submit value=Edit> On the action page: Code:
If Request.Form("Delete") <> "" Then
temp = "?id=" + Request.Form("id")
Response.Redirect("Delete.asp" + temp)
End If
Edit would be the same way. |
|
#3
|
||||
|
||||
|
Hi
To redirect to another page when a button is clicked, change the FORM ACTION then submit it: Code:
<button name="TheButton" onClick="document.TheForm.action='thepage.asp';TheForm.subm it();"> MK |
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > <form action=""> |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|