((Label)this.Master.FindControl("MainContent").FindControl("current_item_gruop_pro_" + index_curr)).Text = wrcc.ProductName;
在带有master的内容页中,要findcontrol 需要先this.Master.FindControl("MainContent") //MainContent为Master名称
本文详细介绍了在Master页面中如何通过Master.FindControl和FindControl方法找到特定内容页中的控件,并通过索引进行动态更新,具体展示了在主页面中如何操作子页面的元素以实现实时数据展示。
((Label)this.Master.FindControl("MainContent").FindControl("current_item_gruop_pro_" + index_curr)).Text = wrcc.ProductName;
在带有master的内容页中,要findcontrol 需要先this.Master.FindControl("MainContent") //MainContent为Master名称

被折叠的 条评论
为什么被折叠?