Hi Guys!
How do you store the value of a textbox into a variable every second?
Printable View
Hi Guys!
How do you store the value of a textbox into a variable every second?
You don't need to, just access the value of the textbox. Why do you need it?
And... Server side or client side?
I did it all in server side coding.
Everytime I press the hyperlink button the value of the textbox is gone but I did store it in a global module.
I think you're going about it all wrong.
Use an ASP.NET textbox control, set its EnableViewstate property to true. This way, any postbacks to the page will preserve the values in the textbox. No need to store it anywhere either.
My textbox's EnableViewState property is already set to True. Ok, maybe IQuote:
Originally Posted by mendhak
am doing it all wrong.
How do you get the events of a button array?
Thanks for the reply by the way.
What does a Addhandler do? Maybe this colud solve my problem.
If you want to handle the events of many buttons,
Private Sub Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click, Button1.Click, Button2.Click
Or you can use an Addhandler in the Page_Load event to dynamically assign them the event handler.
However, this doesn't have much to do with maintaining the text in your textbox.
It should work if you have EnableViewState set. Show code. The codebehind code as well as the ASP.NET code.