Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HIde Label

Status
Not open for further replies.

shiggyshag

Programmer
Dec 14, 2001
227
0
0
GB
HI

I use the below to hide a button when I print my page but it doesnt work for labels what should I use?

document.Form1.Label2.style.visibility = "hidden";

Cheers
 
HI,

I am quite a beginner but I did the same thing using something like this: lbltest.visible = false

just tested it again in VS.net and it worked ok.

hope this helps.

 
Hi

Thank you for getting back to me.

But I would like to do this client side as I am not doing a post back

Cheers
 
not sure if you can use a label this way...you can create your label as a <SPAN> tag and show/hide it, I believe...or maybe put it within a <div> tag and show/hide the div client side.

"...we both know I'm training to become a cagefighter...see what happens if you try 'n hit me..."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top