label control

S

Seema Multani

I want two labels in my asp page with image <-- and -->(i.e right and left
arrows). and I want it's click events. But I think in asp.net 2.0 in VS
2005 doesn't have click events for labels. How can I do that. Do I have to
use another control
 
N

Nathan Sokalski

Visual Studio 2005 gives warnings about a lot of attributes that you are
allowed to use. When you include an attribute that VS 2005 says is not a
valid attribute, it will still output that attribute and value to the
generated page. If you are talking about the JavaScript onclick event,
simply add it the same way you normally would. If you wanted the server-side
click event, you would have to use a different control (probably the
LinkButton control). Hopefully this helps, Good Luck!
 
A

Alessandro Zifiglio

Seema, a label control is used to display textual data. So, yes, you should
be using the imagebutton instead, which also supports the serverside click
events you are after :)

Regards,
Alessandro Zifiglio
http://www.AsyncUI.net
 

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
474,104
Messages
2,570,643
Members
47,247
Latest member
youngcoin

Latest Threads

Top