Hello, everyone how to clear the input field after page refresh and submit record in razor view .net core
Input field not clear
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Hello, everyone how to clear the input field after page refresh and submit record in razor view .net core
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vinitha TRank #8,005 · 230 reputationPosted Dec 15, 2021, 8:13 AM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Dec 15, 2021, 4:10 AM EST
Hi Rohan,
Use ModelState.clear() to clear input after submit,
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Dec 15, 2021, 4:13 AM EST
RohanRank #1,548 · 1K reputationPosted Dec 15, 2021, 4:21 AM EST