Hej keysersoze,
nu får du koden til begge filer.
Min masterpage:
<%@ Master Language="VB" AutoEventWireup="false" CodeFile="master1.Master.vb" Inherits="Site" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"><link rel="stylesheet" href="/files/design/css/master.css" type="text/css">
<link rel="stylesheet" href="/files/design/css/design.css" type="text/css">
<title>...</title>
<body>
<form id="form1" runat="server">
<div id="main">
<div class="cell">
<h2><asp:label id="lblMenu" runat="Server" /></h2>
<ul class="list">
<asp:DataList id="dtlMenuNiv" runat="server">
<ItemTemplate>
<li><a href="../<%#Container.DataItem("folder")%>/<%#Container.DataItem("folder")%>_opr.aspx"><%#Container.DataItem("overskrift")%></a></li>
</ItemTemplate>
</asp:DataList>
</ul>
</div>
</div>
</form>
<asp:ContentPlaceHolder id="CPH1" runat="server">
</asp:ContentPlaceHolder>
</body>
</html>
Min page:
<%@ Page language="vb" MasterPageFile="../master1.master" Debug="true" AutoEventWireup="false" Src="../../Codebehind/jord.aspx.vb" Inherits="jordOpret" ContentType="text/html" ResponseEncoding="utf-8" %>
<asp:Content ContentPlaceHolderId="CPH1" runat="server">
<div id="content">
<h1>Menu</h1>
<div id="context">
<div id="context">
<h3>Opret jordbund</h3>
<div id="contextArea">
<table width="920px">
<tr>
<td width="150px">Jordbundstype:</td>
<td width="8"></td>
<td width="762"><asp:TextBox ID="txtOverskrift" runat="server" Width="760" /></td>
</tr>
</table>
</div>
<div id="contextArea">
<table width="920px">
<tr>
<td width="150px" valign="top">Uddybende tekst:</td>
<td width="8"></td>
<td width="762"><asp:TextBox runat="server" ID="txtJordTekst" Width="760" TextMode="MultiLine" Height="200" /></td>
</tr>
</table>
</div>
<div id="contextArea">
<table width="920px">
<tr>
<td width="150px" valign="top"></td>
<td width="8"></td>
<td width="762"><div align="right"><asp:button id="butOK" text=" OK " onclick="SubmitBtn_Click" runat="server" /></div></td>
</tr>
</table>
</div>
</div>
</div>
</div>
</asp:Content>