473,406 Members | 2,293 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,406 software developers and data experts.

Positioning web server controls at runtime

I would like to place some button controls on a web page underneath a
DataGrid control. Since the height of the DataGrid depends on the number of
rows displayed, which is determined by user selections, I need to set the
position of the button controls at runtime. With a Windows form I could do
it with:

Button.Top = Datagrid.Top + Datagrid.Height + <offset>

Unfortunately, the Top property is not provided for web server controls.
How, then, can I do it?

Bob Rosen
Jul 21 '05 #1
1 1256
You should rather than trying to compute it's position,
use flow layout and not absolute positions. Let the browser compute an
appropriate position instead of doing it yourself. Do not use the Design
View for the ASPX in Visual Studio.
Instead use the HTML view and manually write the HTML code.
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Bob Rosen" <bo******@zipcon.net> wrote in message
news:Vv******************@newshog.newsread.com...
I would like to place some button controls on a web page underneath a
DataGrid control. Since the height of the DataGrid depends on the number
of
rows displayed, which is determined by user selections, I need to set the
position of the button controls at runtime. With a Windows form I could
do
it with:

Button.Top = Datagrid.Top + Datagrid.Height + <offset>

Unfortunately, the Top property is not provided for web server controls.
How, then, can I do it?

Bob Rosen

Jul 21 '05 #2

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

Similar topics

2
by: Johnson Smith | last post by:
Question is related to ASP.Net and controlling the position of these controls. I am using html table to placce my web controls. I am displaying same datagrid and calendar controls at clicks of...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
6
by: Paul | last post by:
still trying to figure out how to do this as I have a grid that gets data from a dbase and can change in size. I have controls that I always want to be just below the grid, with no gaps. This is a...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
2
by: Glenn T. Kitchen | last post by:
Hello Group, How do you position a web control you create at runtime? I thought: ===================================== Dim Label1 as Label = New Label Me.Controls.Add(Label1)...
1
by: Bob Rosen | last post by:
I would like to place some button controls on a web page underneath a DataGrid control. Since the height of the DataGrid depends on the number of rows displayed, which is determined by user...
2
by: Rob R. Ainscough | last post by:
I'm slowly (very slowly) working my way thru the bizarre and sadistic world of control positioning in MultiViews (ASP 2.0). I came across this to help me explain (or attempt to anyway) why my web...
1
by: Fred Nelson | last post by:
Hi: I'm working on one of my first web applications in asp.net 2.0 and I'm having a problem with absolute versus relative positioning of controls that I place on pages that use master pages with...
4
by: TS | last post by:
Steven, i lost this message conversation from outlook express and made a post online (see last one on this page). Please answer it as it hasn't been yet. thanks The clientID of our controls...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.