Author: pankajsachdeva | Posted on: 6/30/2008 9:55:43 PM | Views : 311

 hi all,
 
           I am trying to find a panel on a master page from its content page. But the panel is always coming null. This is my code:
        ContentPlaceHolder cnt = new ContentPlaceHolder();
        cnt = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1");
        Panel pnl = new Panel();
        pnl = (Panel)cnt.FindControl("pnlLogin");
         Contentplace holder is returning but the panel is always coming null.
         Can smeone help me?
         Thanx in advance
 
...

Go to the complete details ...