Quantcast
Channel: ASPSnippets RSS Feed
Viewing all articles
Browse latest Browse all 4741

Clear Model Fields (TextBox, DropDownList) after Form Submit in ASP.Net MVC

$
0
0
Here Mudassar Ahmed Khan has explained with an example, how to clear Model Fields such as TextBox, DropDownList, RadioButtons, CheckBoxes, ListBox etc. after Form Submit in ASP.Net MVC Razor. The Form Fields which are created using Model class retain the values even after Form submission and hence to clear such Form Fields, Model state needs to be cleared.

Viewing all articles
Browse latest Browse all 4741

Trending Articles