We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Urgent Help in  ContainPlaceHolder Control

vsvb
vsvb asked
on
Medium Priority
317 Views
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
Comment
Watch Question

Senior Manager, Database Engineering
Commented:
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");
    }
}


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.