Hi
I hav dropdown in code
After Button click I am saving this dropdown value, but after saving I want to reset dropdown and want selected item Please Select
Thank you
Hi
I hav dropdown in code
After Button click I am saving this dropdown value, but after saving I want to reset dropdown and want selected item Please Select
Thank you
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.
Mukund KumarPosted Dec 20, 2023, 12:48 PM
Option 1: Server-Side (C#):
Option 2: Client-Side (JavaScript):
Satyaprakash SamantarayPosted Dec 20, 2023, 8:05 AM
The below process is faster ur web application.
In your script under code HTML:
and apply in ur save button
Satyaprakash SamantarayPosted Dec 20, 2023, 7:59 AM
page load event:
Anandu G NathPosted Dec 20, 2023, 7:07 AM
Amit MohantyPosted Sep 7, 2023, 5:58 AM
To reset the
DropDownListand select the "Please Select" item after a button click in ASP.NET, you can use the following code in the button's click event handler:Rajeev KumarPosted Sep 7, 2023, 5:23 AM