Link to home
Start Free TrialLog in
Avatar of Moti Mashiah
Moti MashiahFlag for Canada

asked on

asp.net mvc4

Hi All,

I Implemented webapp with asp.net mvc4.

I have form with submit button that when users click on it they save all the data they filled up in the form. what I would like to do is when user click on submit then submit will grey out or disable until the process of saving data finish. The issue I experience now is users click on submit many times and created duplicated data.

Here is what I was trying to do:

this.disabled = true; this.value = 'Creating PO, please wait....'; this.form.submit()

This code above works but he doesn't save all my form as in my server side i need to pass param.

Here is my submit button:

<input type="submit" name="command" value="Submit" id="Submit" class="btn btn-sm btn-primary" />
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

If you are concerned with multiple submits, you could also do a redirect to an action, which will lose track of the post.

Redirect After Post
http://www.theserverside.com/news/1365146/Redirect-After-Post
ASKER CERTIFIED SOLUTION
Avatar of Aaron Jabamani
Aaron Jabamani
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Moti Mashiah

ASKER

thanks solved