Ishika Tiwari

Ishika Tiwari

  • 218
  • 8.1k
  • 370.9k

IsPostBack always being true on every refresh in your ASP.NET

Feb 2 2024 7:17 AM

It appears that I have a page with 2 views. When you refresh the page, the postback is initially false. However, after clicking a submit button, the postback becomes true, and the 1 view changes to view 2. Now, when you refresh the page again, the postback is true, but i want it to be false.

  1. Initially, after refreshing the page, the postback is false.
  2. After submitting the form, the postback becomes true, and the view changes.
  3. Subsequent page refreshes result in a true postback, but i want it to be false.

Answers (2)