Click here to Skip to main content
15,895,781 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi , I have a div
as

<div id="divPagOfPage"  runat="server"></div>


i have made it invisible in clientside as

document.getElementById("divPagOfPage").style.display = "none";

Now i want again this div to be visible ,for this i have wrote code in codebehind
as
divPagOfPage.Style.Add("display", "inline");
  divPagOfPage.Visible = true;

and also
  ScriptManager.RegisterStartupScript(this, this.GetType(), "starScript", "ShowdivPagOfPage();", true);
function ShowdivPagOfPage(){
document.getElementById("divPagOfPage").style.display = "inline";

}


I tried all the three above code but still the div is invisible.How to make it visible in codebehind which is made invisible in cleintside.
Posted

1 solution

Hi,

Could you please try giving 'block' instead of 'inline',

document.getElementById(id).style.display = 'block';

Thanks,
B.S
 
Share this answer
 
Comments
aassaahh 5-Feb-13 3:27am    
still not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900