troubleshooting Question

how to not lose variables values using calculate and submit button

Avatar of metropia
metropiaFlag for United States of America asked on
Web Languages and StandardsC#ASP.NET
9 Comments3 Solutions412 ViewsLast Modified:
I have an asp.net page/ form with two button.

the first button is enabled and it is used to calculated some fields based on other fields inputs.

after the calculation is completed, then the second button becomes enabled, and allows the user to submit the user entered values, and the calculated values into a database table.

my problem is that when i click the second button, the variables and their values are lost, because i instantiate them at the very beginning of the page.

how can i do so that the values are not lost when the second button is clicked and the field values are already there?

I can post my code if my question is not clear


Thanks you.
ASKER CERTIFIED SOLUTION
srikanthreddyn143

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros