ASP.NET Page Level Variable ?????

I am writing an application(asp.net webforms) whereby at the top of the page a claim number shows in an asp textbox. Under it there are about 14 tabs of information that all fall under the umbrella of the listed claim in the textbox. The user can ay of the following :

1) click a button to navigate to the previous claim,
2) click a button to go to the next claim
3) they can directly change (type) the number in the textbox, and hit enter.

Doing any of these actions will reload the information tabs (various calls back to the server happen) with new information related to the newly sought after claim. The user can go to a tab, type in new information, and hit a button on each tab to committ the new information.

Obviously in order for this to happen, I am referencing the claim number typed into the textbox quite often in my codebehind.  This is fine, but it actually starts to  become a performance issue because when I go to the database with the claim number I have to convert the text value of the textbox to an integer (ie. Convert.ToInt32(txtClaim.Text)...happens 96 times... becomes cumbersome) . <b>What I want is a way to simply reference the integer value set in the textbox</b> . I don't want to use a session variable or viewstate because with those variable types I would still have to do the conversion to integer.  EX (Convert.ToInt32(Session["claim"]).....this is no good). What I want is something like a page level integer variable that I can manipulate accross postbacks to keep the current value of the textbox handy. How to do ? Any information or advice would be greatly appreciated.
jazzcatoneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Melih SARICAOwnerCommented:
On page load or postback do the conversion once to a private intt variable then use this converted variable for all  the code blocks
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jazzcatoneAuthor Commented:
Have tried this and unfortunately for some reason it doesn't appear to be working for scenario 3. This is puzzling I know. The page seems to postback with the original value that was in the textbox and not the user entered  changed value.
0
Melih SARICAOwnerCommented:
It must work for 3 scenes.. if not working it means u forget someting in ur code
0
guru_samiCommented:
Is there any thing changing on client-side? Please share your code.
0
jazzcatoneAuthor Commented:
Have other pressing issues will post when I get a chance.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.