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

Discussion in '.NET' started by SerpentKiss2010, Apr 6, 2011.

  1. SerpentKiss2010

    SerpentKiss2010

    Joined:
    Apr 6, 2011
    Messages:
    2
    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 ....
    SerpentKiss2010, Apr 6, 2011
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ad
    Replies:
    3
    Views:
    317
    MattC
    May 12, 2005
  2. ad

    Inherit a aspx?

    ad, May 12, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    488
    Mark Rae
    May 12, 2005
  3. phil1bruening@web.de
    Replies:
    4
    Views:
    15,553
    phil1bruening@web.de
    Nov 23, 2005
  4. Abraham Andres Luna

    folder doesn't inherit web.config settings

    Abraham Andres Luna, Mar 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    392
    Abraham Andres Luna
    Mar 9, 2006
  5. =?Utf-8?B?TWF0dA==?=

    Inherit master page?

    =?Utf-8?B?TWF0dA==?=, Jul 3, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    977
    David R. Longnecker
    Jul 3, 2007
Loading...

Share This Page