asp.net with javascript visible property [Resolved]

Posted by Savari_Arm under C# on 11/28/2012 | Points: 10 | Views : 1412 | Status : [Member] | Replies : 5
hi guys
i am try to change label properties visible set as false at the time of any text box is focused...it working on without master pages but with master page it can't work properly.
any one help me.

document.getElementById('lblmsg').style.display = 'none';( it work on without master page)

same it cant be work at with master pages.




Responses

Posted by: Somu475 on: 11/29/2012 [Member] Starter | Points: 50

Up
0
Down

Resolved
Hi Savari_Arm,

Try like this...

document.getElementById('ctl00_ConPhlBody_lblmsg' ).style.display = 'none'


ConPhlBody - Is the ID of the ContentPlaceHolderID in master page.

-Somu

Savari_Arm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sandhyab on: 11/28/2012 [Member] Starter | Points: 25

Up
0
Down
Do you have lblmsg Id in your master page??

Thanks & Regards

Savari_Arm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Savari_Arm on: 11/29/2012 [Member] Starter | Points: 25

Up
0
Down
i m using label id lblmsg .. in my content page not master page but my content page is under the master page ...ok.. Thats why its not working ...

without master page ... content pages it has work fine..

document.getElementById('lblmsg' ) .style.display = 'none'

Savari_Arm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Savari_Arm on: 11/29/2012 [Member] Starter | Points: 25

Up
0
Down
Thanks a lot its working Fine

Savari_Arm, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Somu475 on: 11/29/2012 [Member] Starter | Points: 25

Up
0
Down

You are welcome.

-Somu

Savari_Arm, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response