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

Dynamically positioning objects at run-time.

I have an interesting little ASP.NET problem.

I have to position and show multiple "frames" in an IE6 browser at run
time in a singe ASP.NET page. Each "frame" will contain a couple of
navigation links and one chart object (currently an ActiveX control
but we will be switching to native .NET controls soon). The number of
frames shown on the page will be selected by the user dynamically at
run time.

What I need to do is define a myFrame object that takes x location, y
location, width and height parameters at run time to position and size
the myFrame in the window. I also need to scale the set of myFrames
to fill the window. Width and Height are valid run-time parameters.
X location and Y location, however, are part of the Style parameter
which is read-only. (I have not figured out how to change it.)

I need to come up with an answer, even if it is to render the html
myself or use JavaScript. I am hoping that there is a more elegant
way to do this using ASP.NET.

Thanks
Bill Zack
Nov 18 '05 #1
3 1432
Hi Bill,

Thank you for posting to the MSDN newsgroups.

I am interested in this issue and researching on it now. I will update you
as soon as possible.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #2
Hi Bill,

Based on my research and experience, we can use the iframe object. Please
refer to the following information carefully.

IFRAME Element | iframe Object
http://msdn.microsoft.com/library/de...thor/dhtml/ref
erence/objects/iframe.asp
"...
Style attribute Style property Description
...
left left Sets or retrieves the
position of the object relative to the left edge of the next positioned
object in the document hierarchy.
...
top top Sets or retrieves the
position of the object relative to the top of the next positioned object in
the document hierarchy.
...
"

Using IFRAME Elements
http://msdn.microsoft.com/library/de...thor/dhtml/ove
rview/inlinefloatingframes.asp

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #3
Thanks for the advice.

It looks like positioning and sizing a set of IFrames will do the
trick. I plan to tell each one what to actually load into the IFRAME
by specifying an aspx page with query string parameters in the url.
The aspx page will then dynamicaly load a user control (ascx) in the
page.

The user controled resizing logic to fit the frames on the page will
be fun to write!

Thanks again
Bill Zack
ji***@online.microsoft.com (Jacob Yang [MSFT]) wrote in message news:<2I**************@cpmsftngxa06.phx.gbl>...
Hi Bill,

Based on my research and experience, we can use the iframe object. Please
refer to the following information carefully.

IFRAME Element | iframe Object
http://msdn.microsoft.com/library/de...thor/dhtml/ref
erence/objects/iframe.asp
"...
Style attribute Style property Description
..
left left Sets or retrieves the
position of the object relative to the left edge of the next positioned
object in the document hierarchy.
..
top top Sets or retrieves the
position of the object relative to the top of the next positioned object in
the document hierarchy.
..
"

Using IFRAME Elements
http://msdn.microsoft.com/library/de...thor/dhtml/ove
rview/inlinefloatingframes.asp

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #4

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

Similar topics

11
by: NS | last post by:
I am relativly new to css positioning and have a question regarding the display of a DHTML pop-up Here is the basic HTML I am using: <html> <head> <script language="JavaScript"> <!--
4
by: Jaime Stuardo | last post by:
Hi all... I need to add some JavaScript code that is dynamically generated to some point of the page. Currently I'm using ClientScript.RegisterStartupScript(GetType(), "menu", "<script...
2
by: Jawiko | last post by:
I am trying to place objects like buttons, calendar, listboxes etc on a webform. I am strugling with the positioning. I placed all the objects in a cell and the cell centers itself on the page....
3
by: EricW | last post by:
I want to create my homepage completely dynamically, but when I create two imagecontrols and want to position them, they won't move at all. I've read some artikels about using the placeholder,...
4
by: Tomas | last post by:
A newbie question: How can I instantiate objects dynamically in VB.NET. E.g. I have the object 'Player' and I would like to instantiate it with the several instances (James, Gunner, etc.), without...
2
by: marijuanated | last post by:
Hi All, I am generating a series of tables in CSS. The tables should repeat themselves for a number of times governed by a counter that is calculated at runtime by the ASP code. The problem is...
10
by: Jess | last post by:
Hello, I have a program that stores dynamically created objects into a vector. #include<iostream> #include<vector> using namespace std;
1
by: Paddy | last post by:
The problem I am facing is as follows: I am populating an HTML table on my webpage with rows of data from a database. The rows may be sometimes 10 and sometimes say,3. I have two buttons on that...
1
by: krishna81m | last post by:
I am unable to create a list of objects dynamically. I run a SQL query on the database and populate objects of types that I also know aprior. I read the query as a string, run it on the database and...
1
by: deegeorge | last post by:
Hi, we have designed an online shopping website.in that we r displaying the online products for all the products we hve a buy button and details button which is created dynamically on click of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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,...
0
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...

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.