?
Solved

Urgent Help in  ContainPlaceHolder Control

Posted on 2006-03-20
1
Medium Priority
?
301 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
0
Comment
Question by:vsvb
1 Comment
 
LVL 11

Accepted Solution

by:
Ved Prakash Agrawal earned 1200 total points
ID: 16235183
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

839 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