Urgent Help in ContainPlaceHolder Control

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
LVL 3
vsvbAsked:
Who is Participating?
 
Ved Prakash AgrawalDatabase Consultant/Performance ArchitectCommented:
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)
    {
        Response.Redirect("info.aspx");
    }

On command button two click type
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("details.aspx");
    }

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)
    {
        Response.Redirect("info.aspx");
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("details.aspx");
    }
}


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.