我需要在RadButton
中找到Radtreelist
,该怎么做?
ContentPlaceHolder contentPage = Page.Master.FindControl("ContentPlaceHolder2") as
ContentPlaceHolder;
RadButton radbutton1 = (RadButton)contentPage.FindControl("RadButton1");
答案 0 :(得分:0)
ContentPlaceHolder contentPage = this.Page.Master.FindControl("ContentPlaceHolder1") as ContentPlaceHolder;
RadButton R = sender as RadButton;
RadButton radbutton1 = R.Parent.FindControl("RadButton1") as RadButton;