M
Martin Eyles
I am trying to put web controls in my page which inherit their position from
style property. So far I have the following code, but the "hello"s don't
appear in their desired position. Has anyone any idea how to fix this?
Thanks,
ME
TestPositionInheritance.aspx
-----------------------------------
<%@ Register TagPrefix="aspcustom" TagName="TestPositionInheritanceControl"
Src="TestPositionInheritanceControl.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="TestPositionInheritance.aspx.vb"
Inherits="LineViewProto.NET.TestPositionInheritance"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>TestPositionInheritance</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<aspcustom:testpositioninheritancecontrol runat="server"
id="test1" style="position:absolute; top:100px;
left:100px"></aspcustom:testpositioninheritancecontrol>
<aspcustom:testpositioninheritancecontrol runat="server"
id="test2" style="position:absolute; top:200px;
left:200px"></aspcustom:testpositioninheritancecontrol>
<aspcustom:testpositioninheritancecontrol runat="server"
id="test3" style="position:absolute; top:300px;
left:300px"></aspcustom:testpositioninheritancecontrol>
</form>
</body>
</html>
TestPositionInheritance.aspx.vb
--------------------------------------
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="TestPositionInheritanceControl.ascx.vb"
Inherits="LineViewProto.NET.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
Hello
style property. So far I have the following code, but the "hello"s don't
appear in their desired position. Has anyone any idea how to fix this?
Thanks,
ME
TestPositionInheritance.aspx
-----------------------------------
<%@ Register TagPrefix="aspcustom" TagName="TestPositionInheritanceControl"
Src="TestPositionInheritanceControl.ascx" %>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="TestPositionInheritance.aspx.vb"
Inherits="LineViewProto.NET.TestPositionInheritance"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>TestPositionInheritance</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema
content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<aspcustom:testpositioninheritancecontrol runat="server"
id="test1" style="position:absolute; top:100px;
left:100px"></aspcustom:testpositioninheritancecontrol>
<aspcustom:testpositioninheritancecontrol runat="server"
id="test2" style="position:absolute; top:200px;
left:200px"></aspcustom:testpositioninheritancecontrol>
<aspcustom:testpositioninheritancecontrol runat="server"
id="test3" style="position:absolute; top:300px;
left:300px"></aspcustom:testpositioninheritancecontrol>
</form>
</body>
</html>
TestPositionInheritance.aspx.vb
--------------------------------------
<%@ Control Language="vb" AutoEventWireup="false"
Codebehind="TestPositionInheritanceControl.ascx.vb"
Inherits="LineViewProto.NET.WebUserControl1"
TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
Hello