需要在Radtreelist中找到RadButton

时间:2014-12-30 13:02:42

标签: radtreelist

我需要在RadButton中找到Radtreelist,该怎么做?

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

1 个答案:

答案 0 :(得分:0)

ContentPlaceHolder contentPage = this.Page.Master.FindControl("ContentPlaceHolder1") as ContentPlaceHolder;
    RadButton R = sender as RadButton;
    RadButton radbutton1 = R.Parent.FindControl("RadButton1") as RadButton;