|
-
May 25th, 2006, 05:16 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [02/03] Store Value of TextBox every second
Hi Guys!
How do you store the value of a textbox into a variable every second?
-
May 25th, 2006, 05:21 AM
#2
Re: [02/03] Store Value of TextBox 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?
-
May 25th, 2006, 05:36 AM
#3
Thread Starter
Hyperactive Member
Re: [02/03] Store Value of TextBox every second
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.
-
May 25th, 2006, 04:00 PM
#4
Re: [02/03] Store Value of TextBox every second
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.
-
May 25th, 2006, 09:13 PM
#5
Thread Starter
Hyperactive Member
Re: [02/03] Store Value of TextBox every second
 Originally Posted by mendhak
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 I
am doing it all wrong.
How do you get the events of a button array?
Thanks for the reply by the way.
-
May 25th, 2006, 10:18 PM
#6
Thread Starter
Hyperactive Member
Re: [02/03] Store Value of TextBox every second
What does a Addhandler do? Maybe this colud solve my problem.
-
May 26th, 2006, 07:37 AM
#7
Re: [02/03] Store Value of TextBox every second
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|