When I log out of a page once, there should be no postback afterward in asp.net wbeofrm.
Page post back
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
When I log out of a page once, there should be no postback afterward in asp.net wbeofrm.
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
Tahir AnsariRank #366 · 6.8K reputationPosted Apr 15, 2024, 2:59 PM EDT
When you log out of an ASP.NET page, the page that fired the postback is reloaded, and the LoggingOut and LoggedOut events are fired.
You can use the IsPostBack property to check if this is the first time the page is being processed. You can also use the IsCallback and IsCrossPagePostBack properties at this time.
You can disable postbacks on Enter by setting UseSubmitBehavior="False" on your Buttons.