Hi,
I have some problem with using variables, I am making a form in C#?asp.net .
Now in my web application form I am having two controls on web page (dropdown, button); depending on the selection in the dropdown I have changed some value in a integer variable.
PROBLEM: the variable retains this value until the event ends.
after that I am using this value to do some processing; it is here that I find that the int value has changed back to 0(its default value). How can I prevent this as I need the value of the int?
I have tried my code both by declaring the int variable as global to that form and also by declaring it inside that particular event.
can someone please help me?
thank You