C
Chris
hello.
How can I dynamically change a contentpage of the masterpage?
I have a listbox in the masterpage. Depending on the selected item i
want to show a different contentpage.
I try something like this (masterpage-code)
protected void DropDownList1_SelectedIndexChanged(object sender,
EventArgs e)
{
switch (somethingtoTest)
{
case "1": ContentPlaceHolder1.Page = "Page1.aspx";
break;
case "2": ContentPlaceHolder1.Page = "Page2.aspx";
break;
break;
}
}
But the code is not accepted since "ContentPlaceHolder1.Page" is not
of type string.
But how then?
thank you
Chris
How can I dynamically change a contentpage of the masterpage?
I have a listbox in the masterpage. Depending on the selected item i
want to show a different contentpage.
I try something like this (masterpage-code)
protected void DropDownList1_SelectedIndexChanged(object sender,
EventArgs e)
{
switch (somethingtoTest)
{
case "1": ContentPlaceHolder1.Page = "Page1.aspx";
break;
case "2": ContentPlaceHolder1.Page = "Page2.aspx";
break;
break;
}
}
But the code is not accepted since "ContentPlaceHolder1.Page" is not
of type string.
But how then?
thank you
Chris