473,387 Members | 1,569 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,387 software developers and data experts.

How to position a dynamically created control...

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, but when I dynamically
create one, I can't move it at all.

Or am I doing something wrong here?

Please advice/help.

rg,
Eric
Dec 18 '06 #1
3 2264
You may want to use absolute positioning instead of the standard flow
layout.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"EricW" <ie****@home.comwrote in message
news:45***********************@news.kpnplanet.nl.. .
>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, but when I
dynamically create one, I can't move it at all.

Or am I doing something wrong here?

Please advice/help.

rg,
Eric

Dec 19 '06 #2
I have set the whole page to absolute positioning and I have also set the
controls to it, but still it won't place itself at the position I want it to
be.

Is there somewhere an example I can study?

rg,
Eric
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netschreef in
bericht news:BD**********************************@microsof t.com...
You may want to use absolute positioning instead of the standard flow
layout.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"EricW" <ie****@home.comwrote in message
news:45***********************@news.kpnplanet.nl.. .
>>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, but when I
dynamically create one, I can't move it at all.

Or am I doing something wrong here?

Please advice/help.

rg,
Eric


Dec 19 '06 #3
found it.... my bad....

I used control.style("top") = 10 instead of = "10px"

;-)

rg.
Eric

"EricW" <ie****@home.comschreef in bericht
news:45**********************@news.kpnplanet.nl...
>I have set the whole page to absolute positioning and I have also set the
controls to it, but still it won't place itself at the position I want it
to be.

Is there somewhere an example I can study?

rg,
Eric
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netschreef in
bericht news:BD**********************************@microsof t.com...
>You may want to use absolute positioning instead of the standard flow
layout.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"EricW" <ie****@home.comwrote in message
news:45***********************@news.kpnplanet.nl. ..
>>>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, but when I
dynamically create one, I can't move it at all.

Or am I doing something wrong here?

Please advice/help.

rg,
Eric



Dec 19 '06 #4

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

Similar topics

1
by: Karl Seguin | last post by:
i have a dynamically created user control which contains a non-dynamically created ASP.Net button. When the button is clicked, the event is not fired. I know that the control must be created on...
0
by: John Crowley | last post by:
I'm having an odd problem with viewstate and a dynamically created control inside a repeater template. Basically, I have a repeater setup like this in the aspx:
2
by: R Duke | last post by:
I have tried everything I can think of to change the visible property of a design time created control from a dynamically created control's command event handler. Here is the scenario. I have...
1
by: Kamal Jeet Singh | last post by:
Hi Friends !! I am have facing problem in controlling the dynamically created controls on web page. The problem Scenario is Scenario:- My requirement is to load the web user controls on the...
1
by: Kamal Jeet Singh | last post by:
Hi Friends !! I am facing problem in controlling the dynamically created controls on web page. The problem Scenario is Scenario:- My requirement is to load the web user controls on the web...
12
by: vbnewbie | last post by:
I am having problems accessing properties of dynamically generated objects in VB2005. Can someone please help? In a nutshell: My app creates an equal number of checkboxes and labels that share the...
7
by: Lou | last post by:
I have a menu item that creates a new command button. Each time I create a new command button I need to position it to the left of the last created button. In VB6 I could create a control array,...
9
by: Chris | last post by:
I am dynamically adding a user control to each row in a gridview. The reason I am doing it dynamically is the user control is different depending on certain data in the gridview. The gridview...
4
by: mohaaron | last post by:
I can think of a lot of reasons why this might need to be done but as far as I can tell it's not possible. I've been looking for a way to add HtmlTableRows to a table using a button click for a...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.