日期:2014-05-19  浏览次数:20868 次

如何在应用master页面中访问master页面中的控件?
我有一个模板页面:1.master
在这个页面中有一个 <asp:Image   ID= "MyPhoto "   ImageUrl= "~/images/logos/items/default.gif "   runat= "server "   />
另应用1.master母板的页面default.aspx.cs页面:
我想在这个页面中重新设置MyPhoto的ImageUrl的值

如何控制?




------解决方案--------------------
this.master.MyPhoto.ImageUrl
------解决方案--------------------
((Image)this.Master.FindControl( "MyPhoto ")).ImageUrl = Annex;
------解决方案--------------------
http://www.cnblogs.com/doll-net/archive/2007/07/16/819553.html