473,473 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do i position a user control - ascx control.

Hi,

I am trying to create a generic page footer control. But whenever i include
it in a page it always appears at the top of the page - how do i go about
positioning it at the footer - the control is a simple table. code below:
Thanks!

<TABLE WIDTH="100%" BGCOLOR="#dbeaf5" BORDER="0" CELLSPACING="0"
CELLPADDING="0" style=" HEIGHT: 0.5in"
id="myheader">
<TR>
<TD style="FONT-SIZE: larger">Instant Solutions Ltd</TD>
</TR>
</TABLE>
Nov 19 '05 #1
2 1675
Put a placeholder control at the bottom of the page at design time.
Then at runtime you can use some code kinda like this:

MyPlaceHolder.Controls.Add(MyUserControl)

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"John Blair" <jo********@hotmail.com> wrote in message
news:s4***************@newsfe3-gui.ntli.net...
Hi,

I am trying to create a generic page footer control. But whenever i
include it in a page it always appears at the top of the page - how do i
go about positioning it at the footer - the control is a simple table.
code below: Thanks!

<TABLE WIDTH="100%" BGCOLOR="#dbeaf5" BORDER="0" CELLSPACING="0"
CELLPADDING="0" style=" HEIGHT: 0.5in"
id="myheader">
<TR>
<TD style="FONT-SIZE: larger">Instant Solutions Ltd</TD>
</TR>
</TABLE>

Nov 19 '05 #2
Thanks a lot for your reply!

I ended up putting a panel control at the bottom and then placing my footer
control inside it! Thanks again.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:ui**************@TK2MSFTNGP11.phx.gbl...
Put a placeholder control at the bottom of the page at design time.
Then at runtime you can use some code kinda like this:

MyPlaceHolder.Controls.Add(MyUserControl)

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"John Blair" <jo********@hotmail.com> wrote in message
news:s4***************@newsfe3-gui.ntli.net...
Hi,

I am trying to create a generic page footer control. But whenever i
include it in a page it always appears at the top of the page - how do i
go about positioning it at the footer - the control is a simple table.
code below: Thanks!

<TABLE WIDTH="100%" BGCOLOR="#dbeaf5" BORDER="0" CELLSPACING="0"
CELLPADDING="0" style=" HEIGHT: 0.5in"
id="myheader">
<TR>
<TD style="FONT-SIZE: larger">Instant Solutions Ltd</TD>
</TR>
</TABLE>


Nov 19 '05 #3

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

Similar topics

6
by: martin | last post by:
Hi, I am a web page and a web user control. My web user control is placed in my web page using the following directive <%@ Register TagPrefix="uc1" TagName="Header"...
1
by: Leo | last post by:
I created a user control which is some text contained in a HtmlTable. I put this control into main form. I would like to have the ability to move this control around in the main form. I think one...
3
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for...
5
by: Paul | last post by:
Hi I have a custom control and am using as a menu on webpages, just wondering if there is a way to position it differently on different pages, perhaps some code in the page load event? thanks, --...
7
by: Samuel | last post by:
Hi, I am building a page that makes use of user control as a templating technique. The following is that I have in mind and it is actually working: Root/ -- login.aspx -- login.aspx.vb --...
1
by: Andrew | last post by:
Hi, friends, This drove me nuts: I had two web user controls: header.ascx and copyright.ascx. I planed to put them on each .aspx pages: Header on the top, and Copyright at the bottom. ...
2
by: Scott | last post by:
I'm using a master page (mp_TableMaint.aspx) with one Content area (ID: Content1). Content1 contains several usercontrols, which are hidden. The goal is to show the correct control based on the...
2
by: tshad | last post by:
User VS 2003, I would like to use User Controls to control the page look with 3 User Controls (...PageTop.ascx, ...NavigateTop.ascx and PageBottom.ascx). I would put the Content User control...
2
by: rn5a | last post by:
Assume that a user control (MyUC.ascx) encapsulates 2 TextBoxes with the IDs 'txt1' & 'txt2' respectively. To use this user control in an ASPX page, the following Register directive will be...
4
by: =?Utf-8?B?UmljaEI=?= | last post by:
I am trying to create a project using the ASP.NET AJAX accordion control. I would like to dynamically add panes to the control with a form template added when the pane is added. I have tried...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.