Need to find RadButton in Radtreelist

38 views Asked by At

I need to find a RadButton in Radtreelist, how to do this?

ContentPlaceHolder contentPage = Page.Master.FindControl("ContentPlaceHolder2") as 
ContentPlaceHolder;
RadButton radbutton1 = (RadButton)contentPage.FindControl("RadButton1");
1

There are 1 answers

0
Gopal Reddy On BEST ANSWER
ContentPlaceHolder contentPage = this.Page.Master.FindControl("ContentPlaceHolder1") as ContentPlaceHolder;
    RadButton R = sender as RadButton;
    RadButton radbutton1 = R.Parent.FindControl("RadButton1") as RadButton;