masterpages og links
Hej!Jeg har lavet en masterpage som indeholder menuen til selve websitet.
Jeg har så smidt en iframe i min content placeholder på en side som arver fra Masterpage siden.
Men mine links åbner nye vinduer selvom jeg har prøvet at sætte target på dem og sådan.
Min masterpage kode ser således ud:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="template_1280x1024.master.cs" Inherits="template_1280x1024" %>
<!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" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body style="margin-top: 0px; margin-left: 0px; width: 0px; height: 0px; background-color: transparent;" scroll="no">
<form id="form1" runat="server">
<table width="1280" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="5">
<img src="images/1280x1024/tunegaard_1280x1024_01.gif" width="283" height="875" alt="" /></td>
<td colspan="3">
<img src="images/1280x1024/tunegaard_1280x1024_02.gif" width="696" height="131" alt="" /></td>
<td rowspan="5">
<img src="images/1280x1024/tunegaard_1280x1024_03.gif" width="301" height="875" alt="" /></td>
</tr>
<tr>
<td colspan="3">
<img src="images/1280x1024/tunegaard_1280x1024_04.gif" width="696" height="47" alt="" /></td>
</tr>
<tr>
<td colspan="3">
<img src="images/1280x1024/tunegaard_1280x1024_05.gif" width="696" height="30" alt="" /></td>
</tr>
<tr>
<td>
<img src="images/1280x1024/tunegaard_1280x1024_06.gif" width="31" height="630" alt="" /></td>
<td>
<div style="width: 630px; height: 630px">
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
</asp:contentplaceholder>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Request.aspx" Style="z-index: 100;
left: 321px; position: absolute; top: 143px" Target="main">HyperLink</asp:HyperLink>
</div>
</td>
<td>
<img src="images/1280x1024/tunegaard_1280x1024_08.gif" width="35" height="630" alt="" /></td>
</tr>
<tr>
<td colspan="3">
<img src="images/1280x1024/tunegaard_1280x1024_09.gif" width="696" height="40" alt="" /></td>
</tr>
</table>
</form>
</body>
</html>
Min Side som indeholder skabelonen, ser således ud:
<%@ Page Language="C#" MasterPageFile="~/template_1280x1024.master" AutoEventWireup="true" CodeFile="FrontPage_1280x1024.aspx.cs" Inherits="FrontPage" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<iframe src="workingpage.aspx" width="630" height ="630" id="Content" runat="server"></iframe>
</asp:Content>
Nogen som kan fortælle mig hvad der er galt!