c# - Model for confirmations in MVC app -


i have requirement has update start date of period payment. if change it, need check if there transactions outside of period. if there need popup confirmation, saying "are sure want change date 13th of july, 2014. there 18 transactions before date deleted."

how handle far pattern goes? @ moment, mvc application controllers have 'get' , 'save' controller method. like, 'transaction(int accountid)' get, , 'transactions(transactionmodel model) on save. confirmation, need controller method?

what's standard doing tis sort of confirmation? adding 'confirmtransaction(transactionmodel model)' gets called if confirmation required?

additionally, i'd same view used.. using modal popup handle confirmation.

you can this:

when user submits form, stop post, , make ajax request action, @ date field , calculations mention, action return data display in modal. when receive ajax result, can show modal, if user clicks ok, submit form.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -