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

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
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"
    DropShadow="true" BackgroundCssClass="modalBackground">
    <%-- 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;">

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

        <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>

    <%-- End of Login Panel --%>
<-- Registration Popup Code -->

HTML Code:
    <%-- RegistrationModalPopup --%>
    <Ajax:ModalPopupExtender ID="RegModalPopup" runat="server"
    <%-- 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;">

                    <div class="TitlebarRight" onclick="ClearAllData(); $find('mdlPopupReg').hide(); return false;" >
        <!-- 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">

    <%-- 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 )
Registration.aspx has btnCreateAccount

Thank you for your help ....
Reply With Quote

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 ASP .Net 4 11-23-2005 08:38 AM