LinkButton

galmax

Newcomer
Joined
Aug 5, 2004
Messages
1
We have: 1) aspx page 2)LinkButton 3)Label
I want to do the following
Clicking on the LinkButton should make the Label visible
and another click - invisible. Something like expand/collapse.
I`m a beginner - so please make an answer in step-by-step view.
Thanks a lot!!!
 
While in design view of your aspx page, double-click the linkButton, then place this code in the click event routine....

Label1.Visible = Not Label.Visible
 
This will do what you want but will cause a round trip to the server. Maybe you should think about Javascript (or I'm only crazy)
 
Back
Top