Avatar of nightshadz
nightshadz
Flag for United States of America asked on

How do I get a class property to persist after a postback?

I have an editable GridView which posts back when the edit link is clicked.  When clicked, I would like to set a variable like isEdit = True which doesn't reset to false when the page reloads.  I need to be able to toggle a Save button that can handle either Insert or Update to a database so I need isEdit to persist.  Any suggestions?
ASP.NET

Avatar of undefined
Last Comment
nightshadz

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
nightshadz

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61