473,326 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Position Inheritance of Web Controls

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.TestPositionInheritanc e"%>
<!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

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
Nov 19 '05 #1
1 1482
In case it is not clear, what I want is:-

hello

hello

hello

and what I get is:-
hello hello hello

--
Martin Eyles
ma**********@NOSPAM.bytronic.com

"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message
news:10*************@corp.supernews.com...
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.TestPositionInheritanc e"%>
<!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

--
Martin Eyles
ma**********@NOSPAM.bytronic.com

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: KK | last post by:
Windows Forms Inheritance, Incomplete? I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can be used effectively if the...
2
by: KK | last post by:
** Posting it here cause after couple of days no body responded.** I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can...
1
by: Jason Hickey | last post by:
Has there been a change in the way the UI designer handles winform inheritance in the 2003 version of visual studio. Consider the following (try it if you are using 2003 Everything seems to work...
8
by: Gaetan | last post by:
hi i have 2 classes A1 and A2 implementing a problem with 2 different ways i also have 2 other classes X1 and X2 implementing an other problem i need classes that provide A1+X1 methods,...
5
by: Invalidlastname | last post by:
Hi, I just read the pattern "Design and Implementation Guidelines for Web Clients" from MSDN. Here is my question. In chapter 3,...
6
by: VR | last post by:
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing some WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx pages, my MasterPage does not have a form tag itself...
11
by: PAul Maskens | last post by:
The form designer adds unnecessary code to the section when using a subclassed control. I've reproduced this in VS.NET 2002 and VS.NET 2003 so it's pretty fundamental. Outline steps: Create a...
1
by: Rob R. Ainscough | last post by:
I'm at a new level of frustration just trying to get my controls to line up and stay in place. I'm using a MultiView containing 4 views - some views have Panels. I can't use absolution position...
4
by: Joe | last post by:
We are working on a project that requires 3rd parties (ie, consultants) to use our ASP.net webforms in a very reusable manner. The big catch is that we are not allowed to give them source. There...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.