Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to Access Master Page Controls from page.aspx doesn't inherit from master

Reply
Thread Tools

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

 
 
SerpentKiss2010 SerpentKiss2010 is offline
Junior Member
Join Date: Apr 2011
Posts: 2
 
      04-06-2011
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 Code:
    <%-- 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 Code:
    <%-- 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 ....
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
need to lookup master interface that inherit IP address to unnumbered interface via SNMP tua Cisco 0 10-30-2007 12:30 PM
Inherit master page? =?Utf-8?B?TWF0dA==?= ASP .Net 2 07-03-2007 07:13 PM
Can a master page be built from another master page Zeba ASP .Net 1 02-22-2007 10:55 AM
access content page controls from within the master page phil1bruening@web.de ASP .Net 4 11-23-2005 08:38 AM



Advertisments