Hi, I'm a decent programmer but am completely new to the Web Development side of things, and am kind of winging it to build a website. I'm using Visual Studios 2008/ASP.net/C#.
So basically, I'm keeping things simple at the moment. I have a master file that contains a 'header', 'content', and 'footer' section. In the header section I have a row of buttons, which when clicked should change the contents of the 'content' section. I have a corresponding .aspx file for each of these, with generic contents to start:
<%@ Page Language="C#" MasterPageFile="~/Master.master"
AutoEventWireup="true" CodeFile="Content1.aspx.cs" Inherits="Content1" %>
<asp:Content ID="content1" ContentPlaceHolderID="content_section" runat="server">
<h1>CONTENT 1</h1>
</asp:Content>
Repeat from content1 to content5 to match 5 buttons.
Now I need to fill in this section (I think):
protected void btnContent1_Click(object sender, EventArgs e)
{
}
but am not sure how it's done. Any help would be appreciated, thanks.