Two buttons, one work
source link: https://www.codesd.com/item/two-buttons-one-work.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Two buttons, one work
I have two buttons and only one work...
@using (Html.BeginForm("Edit", "Employer"))
{
<button name="Edit_hours">Edit</button>
}
</td>
<td>
@using (Html.BeginForm("Cancel", "Employer"))
{
<button name="Back">Back</button>
}
Back button work properly, but the Edit button dasn't want work... Controller and View should be good.
controller:
public ActionResult Edit()
{
return View();
}
View:
@{
ViewBag.Title = "Edit";
}
<h2>Edit</h2>
I don't understand why it doesn't work ;/
If you are trying to submit your form, then you need a submit
. You should have something like
<input type="submit" value="Edit" id="editSubmit" />
button
doesn't really have any implicit behaviour, so I don't know what you mean by 'it doesn't work'.
Related Articles
Two buttons, one click
Two buttons one line (Bootstrap forms the theme for Symfony2)
The erroneous button is clicked with a page with two buttons
AlertDialog shows only one of the two buttons
Android: two buttons, but the action by pressing one happens only after the other is pressed too
The problem of wrapping LinearLayout text by having two buttons of the same size plus one stretched at the center
One shape, two buttons?
How to make two buttons in one?
one touch on two buttons at the same time
The two-button call on the same page does not work
switch the css class to two buttons when one of the two is clicked
Using two readers, one is nested in the other
Display text with two buttons at the bottom
How to make two buttons in the column?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK