Hi
could you perhaps give more detail on what you want to achieve?
Sorry, got a little off track, but I'm getting back to this problem now. Part of the problem is I want to do it how architact suggested, something like:
on button# click
placeholder.src = "page#.aspx"
But the ASP placeholder object doesn't work like this, rather it seems to be backwards, the content placeholder is assigned to "page#.aspx" instead? This is my default.aspx file, separate from my master file:
<%@ Page Language="C#" MasterPageFile="~/EgocentricMaster.master" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="default_content" ContentPlaceHolderID="main_placeholder" runat="Server">
<h1>DEFAULT</h1>
</asp:Content>
I have several .aspx files set up like this at the moment. Which I want to swap in and out of the main content section. Which looks like this in my master file at the moment:
<div id="master_maincontent" runat="server">
<asp:ContentPlaceHolder id="main_placeholder" runat="server">
</asp:ContentPlaceHolder>
</div>
Using daniweb.com for an example, what I'm trying to accomplish is the "HOME|FORUMS|TUTORIALS|CODE SNIPPETS|BLOGS|LINK DIRECTORY" part of the header. The header always stays the same but when you click on one of the options the content below changes. Except instead of using an ASP:LinkButton type which they seem to use I want to do this with the standard ASP:Button, programmatically.
Maybe this isn't a good idea and I should just stick with LinkButton's?