Master Page problem
-
Hi friends, I put single master page with multiple content pages. I call the function from master page that "showContent()". MasterPage.Master : ================ function ShowContentOne() { alert("enterInside"); var elemContentOne=document.getElementById('divCheckContent'); alert(elemContentOne); elemContentOne.style.display='block'; elemContentOne.style.visibility='visible'; }
=========================================== this 'divCheckContent' is in content page two. But i cant get it. i call this function onclick in master page. frmContentOne.aspx : ================
I cant get the div id. The div id is null while i give in alert. Hope ur's reply Thanks __________________ Failing to plan is Planning to fail :)
Every Successful Person Have A Painful Story
-
Hi friends, I put single master page with multiple content pages. I call the function from master page that "showContent()". MasterPage.Master : ================ function ShowContentOne() { alert("enterInside"); var elemContentOne=document.getElementById('divCheckContent'); alert(elemContentOne); elemContentOne.style.display='block'; elemContentOne.style.visibility='visible'; }
=========================================== this 'divCheckContent' is in content page two. But i cant get it. i call this function onclick in master page. frmContentOne.aspx : ================
I cant get the div id. The div id is null while i give in alert. Hope ur's reply Thanks __________________ Failing to plan is Planning to fail :)
Every Successful Person Have A Painful Story
your idv id is divContentOne and it is ruat server than not acces directly .u use the <%= divContentOne.ClientID %> infront of divContentOne in javascript
Best Regards, Trishul Tandel Software Developer
-
Hi friends, I put single master page with multiple content pages. I call the function from master page that "showContent()". MasterPage.Master : ================ function ShowContentOne() { alert("enterInside"); var elemContentOne=document.getElementById('divCheckContent'); alert(elemContentOne); elemContentOne.style.display='block'; elemContentOne.style.visibility='visible'; }
=========================================== this 'divCheckContent' is in content page two. But i cant get it. i call this function onclick in master page. frmContentOne.aspx : ================
I cant get the div id. The div id is null while i give in alert. Hope ur's reply Thanks __________________ Failing to plan is Planning to fail :)
Every Successful Person Have A Painful Story
Put your javascript function call at end of the page. i.e just before closing the body tag. that should work.. :):)
Thanks & Regards Pete