How to Access Master Page Controls from page.aspx doesn't inherit from master

Joined
Apr 6, 2011
Messages
2
Reaction score
0
i have master page called (Master.master), content page called (Home.aspx) and two independent pages (Login.aspx) and (Registration.aspx)..

master page have three linkbuttons (btnSigninMaster) (btnSignupMaster) and (btnSignOutMaster)

in (btnSigninMaster) click .. ModalPopup (LoginModalPopup) appears that contains (iFrame src="Login.aspx"),
in (btnSignupMaster) click .. ModalPopup (RegModalPopup) appears that contains (iFrame src="Registration.aspx")

<-- Login Popup Code -->
HTML:
    <%-- LoginModalPopup --%>
    <Ajax:ModalPopupExtender ID="LoginModalPopup" runat="server"
    BehaviorID="mdlPopupLogin"
    PopupControlID="pnlPopupLogin"
    TargetControlID="btnSigninMaster"
    DropShadow="true" BackgroundCssClass="modalBackground">
    </Ajax:ModalPopupExtender>
    <%-- End-Of LoginModalPopup --%>

    <%-- Login Panel --%>
    <div id="pnlPopupLogin" style="">

    <div class="popup_Container">
               <div class= "PopupTitlebar" id="divSigninTitleBar">
                    <div class="TitlebarLeft" 
                        style="font-family: Verdana; color: #FFFFFF; font-size: small; font-weight: bold;">
                     Log-in
                    </div>

                    <div class="TitlebarRight" onclick=" $find('mdlPopupLogin').hide(); return false;">
            
                    </div>
               </div>

        <div class="demo">
        
        <%-- Login iFrame of Membership/Login.aspx --%>

        <iframe id="iFrameLogin" src="Membership/Login.aspx" runat="server" frameborder="0" scrolling="no" 
          marginwidth="0" marginheight="0" width="380" height="90" ></iframe>
        </div>

    </div>
   </div>
    <%-- End of Login Panel --%>

<-- Registration Popup Code -->

HTML:
    <%-- RegistrationModalPopup --%>
    <Ajax:ModalPopupExtender ID="RegModalPopup" runat="server"
    BehaviorID="mdlPopupReg"
    PopupControlID="pnlPopupRegistration"
    TargetControlID="btnSignupMaster"
    BackgroundCssClass="modalBackground"
    DropShadow="true">
    </Ajax:ModalPopupExtender>
    <%-- End-Of RegistrationModalPopup --%>

    <%-- Registration Panel --%>
    <div id="pnlPopupRegistration" style="">
    
     <div class="popup_Container">
               <div class= "PopupTitlebar">
                    <div class="TitlebarLeft" 
                        style="font-family: Verdana; color: #FFFFFF; font-size: small; font-weight: bold;">
                     Registration
                    </div>

                    <div class="TitlebarRight" onclick="ClearAllData(); $find('mdlPopupReg').hide(); return false;" >
                 
                    </div>
               </div>
               
        <!-- Controls of Registration Form -->
        <div class="demo">

        <iframe id="iFrameRegistration" src="Membership/Registration.aspx" runat="server" 
                frameborder="0" height="575" scrolling="no" width="760" marginwidth="0" marginheight="0">
        
        </iframe>

        </div>
     </div>
    
    </div>
    <%-- End-Of Registration Panel --%>

my Issue is
1- i want make btnSigninMaster, btnSignupMaster, and mdlPopupLogin disappear from Master page when Login Succeeded, and show btnSignOutMaster.

2- make mdlPopupReg disappear from master page when Signup Succeeded ).

( Login.aspx has btnLogin that i want execute previous functionality (problem) when click on it )
also,
Registration.aspx has btnCreateAccount

Thank you for your help ....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top