kawtousse
kawtousse

Reputation: 4141

submit form and keeping values setting

I want to know if there is a way to submit a form but at the same time keep the values selected and edited(without reset).

Thanks.

Upvotes: 1

Views: 438

Answers (3)

Fabio Milheiro
Fabio Milheiro

Reputation: 8474

In ASP.Net MVC, you may set the page with the form to submit to inherit an instance of a class which properties are set automatically.

In order to keep the values after the submit, you just have to place the object model as the same object that you received as an argument in the action, like this return View("ViewName", object).

But anyway, your question could have been a little more specific. Hope that if you are using .Net, this may be useful.

Upvotes: 0

zaf
zaf

Reputation: 23264

One is to use ajax.

Upvotes: 1

Tim
Tim

Reputation: 7056

Your question is very vague... You will likely need to use PHP (cookies) to store the entries / changes.

Upvotes: 0

Related Questions