how to clear text field after submit data into database,
i am using ModelState.Clear() but its not clear the the textfield after submit data into database on button clear in asp.net mvc view .....
pleasse anyone can help me.......
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bikesh SrivastavaPosted Sep 29, 2016, 10:19 AM
Sudeep ChourasiaPosted Sep 29, 2016, 10:00 AM
// This will clear whatever form items have been populatedDelpin Susai RajPosted Sep 25, 2016, 5:34 AM
Rajeesh MenothPosted Sep 25, 2016, 5:34 AM
Delpin Susai RajPosted Sep 25, 2016, 5:33 AM
Midhun TpPosted Sep 25, 2016, 4:04 AM
Please have a look at similar threads-
http://stackoverflow.com/questions/27589005/how-to-clear-model-after-submit-the-data-in-database-in-mvc3
http://stackoverflow.com/questions/4887192/clearing-text-box-fields-on-a-page-in-mvc