www.RickLaFleur.com

 

How to change a div visibility within a ContentPlaceHolder

Assuming a div id="showdetails", it’s visibility can be set using following:
  
ContentPlaceHolder content = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");
content.FindControl("showdetails").Visible = true;

Labels: , , ,


Archives

January 2007  |   March 2007  |   May 2007  |   February 2008  |   April 2008  |   July 2008  |   September 2008  |   October 2008  |   December 2008  |   January 2009  |   April 2009  |   May 2009  |   June 2009  |  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]