Welcome to TSDN. Have you tried session.clear() and not ispostback? HTH.
Session.Clear() ; for clearing all the key and values from the Session.
IsPostback is readonly property. So only get is there. I hope u know that when a submit action takes place, the IsPostback becomes true.
how to false the post back option in asp.net
send the coding pls
isPostBack is a read only boolean value.
You cannot set this, you can only check it.
If you would like, you could clear the session then redirect the user back to the website using Response.Redire ct("aspxPage.as px"). This will be just like the user's visiting the page for the first time.
Comment