Home Disable button on click but cannot pass parameter to controller
Reply: 0

Disable button on click but cannot pass parameter to controller

user637
1#
user637 Published in May 21, 2018, 12:51 pm

I have a button, which when clicked I want to disable.

<input type="submit" value="Save" class="btn btn-default" name="submit" style="float: right; position: relative; right: -18px;" />

The value "Save" needs to pass from the button to the controller:

 public ActionResult EditCall(ModelCallDetails call, string submit)

but, obviously when I put an OnClick event such as disable, the parameter is not pushing to the controller.

Is there anyway of actually passing the value to the controller, the form is still posting the model info.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.433377 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO