Put a Timer on the web form

C

C Learner

Hi,
I'm new to ASP.NET. I have an WebForm1 which contained a ListBox1. I have
drag a Timer on the form. In the timer1_Elapsed() function , I have add the
line ListBox1.Items.Add("haha"). But when the timer elapsed, it called that
line of code, but the ListBox1 didn't show "haha".
Would you tell me what I have missed?

I'm using C#/ASP.NET

Best regards,
C Learner
 
E

Evertjan.

=?Utf-8?B?QyBMZWFybmVy?= wrote on 10 aug 2004 in
microsoft.public.inetserver.asp.general:
I'm new to ASP.NET. I have an WebForm1 which contained a ListBox1. I
have drag a Timer on the form. In the timer1_Elapsed() function , I
have add the line ListBox1.Items.Add("haha"). But when the timer
elapsed, it called that line of code, but the ListBox1 didn't show
"haha". Would you tell me what I have missed?

I'm using C#/ASP.NET

This is a "classic ASP only" NG.

Please try your luck in a dot.net NG.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top