I want to search for the value we wrote in the textbox without refreshing the page. But when the button is clicked, the page is refreshed. The solutions below did not work. Can you help me?
I want to search for the value we wrote in the textbox without refreshing the page. But when the button is clicked, the page is refreshed. The solutions below did not work. Can you 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.
Ulaş KayalarPosted Dec 20, 2023, 1:14 PM
Jayraj ChhayaPosted Dec 18, 2023, 6:02 AM
Cause
The page is being refreshed because the button click event triggers a postback to the server, causing the entire page to reload.
Solution
To achieve the desired behavior of searching without refreshing the page, you can use AJAX and the UpdatePanel control in ASP.NET Webforms.
With this setup, when the button is clicked, only the content inside the UpdatePanel will be refreshed, and the rest of the page will remain unchanged.
Satyaprakash SamantarayPosted Dec 16, 2023, 6:41 PM
For more details >> https://tinyurl.com/4zj22e5d