|
-
Sep 27th, 2008, 12:52 AM
#1
Thread Starter
Addicted Member
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';
}
<div>
<input id="btnSumbit" type="button" runat="server" style="width:250px" onclick="ShowContentOne()" />
===========================================
this 'divCheckContent' is in content page two. But i cant get it. i call this function onclick in master page.
frmContentOne.aspx :
================
<div id="divContentOne" runat="server" style="display:none;background-color:Red;height:500px;width:500px">
</div>
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 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|