Author: Jedi302 | Posted on: 6/26/2009 6:36:47 AM | Views : 234

hi. i dont seem to solve this by myself. im trying to find a control in a .aspx page. im trying to find the aspx page first, then control but i get null when i try find aspx page.
i use masterpage - menu usercontrol, from where i try to find the aspx page - aspx page


code i use is this.
var site = Page.Master.FindControl("ctl00$ContentPlaceHolder1") as Page;
            if (site != null)
            {
                var placeholder = site.FindControl("plcStatContent") as PlaceHolder;
                if (placeholder != null)
                    placeholder.Con ...

Go to the complete details ...