V
vespaboy
i need to access a <div runat="server"> which sits in a master page
which is itself nested in a master page. i've tried this code but it
doesn't work:
Page:
Dim divStep1 As HtmlGenericControl =
CType(Master.FindControl("divStep1"), HtmlGenericControl)
Master page:
<%@ Master MasterPageFile="~/MasterPage.master" Language="VB"
CodeFile="MasterRegister.master.vb" Inherits="MasterRegister" %>
<asp:Content ID="ContentRegister"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<aspanel CssClass="pnlStepIndex" ID="pnlStepIndex" runat="server"
Width="450px">
<asp:contentplaceholder id="ContentPlaceHolderRegister"
runat="server">
</asp:contentplaceholder>
</asp:Content>
which is itself nested in a master page. i've tried this code but it
doesn't work:
Page:
Dim divStep1 As HtmlGenericControl =
CType(Master.FindControl("divStep1"), HtmlGenericControl)
Master page:
<%@ Master MasterPageFile="~/MasterPage.master" Language="VB"
CodeFile="MasterRegister.master.vb" Inherits="MasterRegister" %>
<asp:Content ID="ContentRegister"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<aspanel CssClass="pnlStepIndex" ID="pnlStepIndex" runat="server"
Width="450px">
said:Eligibility</div>
runat="server"><asp:Image ID="imgHelpPersonal" runat="server" /></said:Your details<br /><asp:HyperLink ID="ancPersonal"
runat="server"><asp:Image ID="imgHelpTravel" runat="server" /></asp:HyperLink> said:Travel Info<br /><asp:HyperLink ID="ancTravel"
asp:HyperLink> said:Employer<br /><asp:HyperLink ID="ancEmp" runat="server"><asp:Image
ID="imgHelpEmp" runat="server" /> said:Summary</div>
</aspanel>said:Complete</div>
<asp:contentplaceholder id="ContentPlaceHolderRegister"
runat="server">
</asp:contentplaceholder>
</asp:Content>