Persist Variable values

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Looch

    Persist Variable values

    I've run into what seems to be an issue with persisting state. I'm new
    to ASP.NET but have been using C# for a while now. I'm coding a
    button_click method in the .cs file for a web page and trying to track
    the number of times the button has been clicked.

    The issue is, everytime the button is clicked, the page seems to
    reload and I'm losing the variable value that I'm using to keep track
    of the number of times the button is clicked. i couldn't find a
    propert setting

    I'm guessing the easiest way would be to add the code into a script
    section of the client side code, but what about using a browser other
    than IE? Would the data still get refreshed when the button is
    clicked? I get the feeling these are some of the fundemental questions
    in web apps.

    Thanks for any suggestions.
  • Looch

    #2
    Re: Persist Variable values

    Thanks for the explanation, that definitely clears it up for me!


    Thanks again.

    Comment

    Working...