Urgent Help in  ContainPlaceHolder Control

Posted on 2006-03-20
Last Modified: 2008-03-17
hi experts ... give me support in below problem

i have Masterform and i placed ContainPlaceHolder conrol in it and calling another aspx page in it
so it is like this
1 : Masterpage.master ( Commandbutton1  + CommandButton2 + Containplaceholder control)
2: Informaionpage.aspx ( some textbox)
3: Detail.aspx                ( some textbox + some image)

Infromationpage and Detailpage refrenced to Masterpage,
Now if i need such like this

if i click on CommandButton 1 then in ContainPlaceHolder control  Informaionpage.aspx sould be shown.
same for  CommandButton 1 then Detail.aspx  sould be shown.

?? any help
Question by:vsvb
    1 Comment
    LVL 11

    Accepted Solution

    Hi  vsvb

    One solution for this can be
    Both Informaionpage.aspx and  Detail.aspx    have the same master page

    On command one click type
      protected void Button1_Click(object sender, EventArgs e)

    On command button two click type
        protected void Button2_Click(object sender, EventArgs e)

    See if it work ?

    my complete masterpage code
    using System;
    using System.Data;
    using System.Configuration;
    using System.Collections;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;

    public partial class Maste_page_MasterPagetest : System.Web.UI.MasterPage
        protected void Page_Load(object sender, EventArgs e)

        protected void Button1_Click(object sender, EventArgs e)
        protected void Button2_Click(object sender, EventArgs e)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now