Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overlapping of controls and regular HTML text
Message
From
22/10/2003 15:41:29
 
 
To
22/10/2003 14:50:45
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00841219
Message ID:
00841257
Views:
19
>I am converting an ASP page into ASPX. That page contains a lot of text. I simply cut & paste that text into the HTML portion of the ASPX page interface. So, in the Design view I can view the text. Now, I have added two Label controls that will have dynamic text on it from the Page_Load() event. That works. But, I am having difficulties for the alignments of the two Label controls and the regular HTML text. In order to avoid overlapping, do I need to convert all my HTML text into text control?

Depending on your layout you can use label controls for some measure of control. I am assuming you have something like "There will be a " & txtMeetingType & " on " & txtDay & "." I kept the example short but I added a substantial text in my test. These results are good when using FlowLayout. btw: Ichanged the < > to [ ]
[%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="TestForUT1.WebForm1"%]
[!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"]
[HTML]
	[HEAD]
		[title]Test For UT[/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]
		[form id="Form1" method="post" runat="server"]
			There will be a
			[asp:Label id="lblMeetingType" runat="server"]Label[/asp:Label] meeting on
			[asp:Label id="lblDay" runat="server"]Label[/asp:Label].
		[/form]
	[/body]
[/HTML]
Here is the code behind.
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        If Not IsPostBack Then
            lblMeetingType.Text = "Special Fox"
            lblDay.Text = Now.AddDays(7).ToShortDateString
        End If

    End Sub
I hope this helps. I am sure it has to do with flowlayout/grid layout.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform