Click here to Skip to main content
12,069,857 members (53,685 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET
Hi , I have a div

<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
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 4-Feb-13 21:12pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


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

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

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.160208.1 | Last Updated 5 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100