clear session & postback option false

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Skarthi
    New Member
    • Jun 2007
    • 2

    clear session & postback option false

    how to clear the session fields...and

    how to false the post back option in asp.net
    send the coding pls
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Welcome to TSDN. Have you tried session.clear() and not ispostback? HTH.

    Comment

    • chinu
      New Member
      • Jun 2007
      • 36

      #3
      Originally posted by kenobewan
      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.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Originally posted by Skarthi
        how to clear the session fields...and

        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.

        -Frinny

        Comment

        • Handeler

          #5
          Great! Works great.

          Comment

          Working...