Get element text before page reloads in ASP.net web forms?

Search where the labelID. Text is modified (maybe Page_Load event), and save the text before in a global variable.

That sounds terrible. – BobTurbo Aug 11 at 11:59 1 what counds terrible? Please elaborate.

– naveen Aug 11 at 12:03 well, it worked. But am I seriously supposed to fill the Web Form with variable declarations (assuming I need more global variables). – BobTurbo Aug 11 at 12:08 well you need to store the value somewhere.It's only a class variable – Simon Halsey Aug 11 at 12:36.

It sounds like on every page load or postback, somewhere there is code which applies a new value to labelID.Text. Where is that work being done? Page_Load?

In any case, wherever that work is being done, you most likely have access to both the existing text value of the control, and the new text value you're about to give it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions