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

Controlling Placeholder Position

Hi all,

How can you control where a placeholder is positioned on a Web Form? AFAIK,
It doesn't seem to support a style or other positioning (or even sizing)
attributes.

TIA,

John
Nov 18 '05 #1
3 2700
A PlaceHolder doesn't render any HTML. Therefore, it doesn't have a
position.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:#H*************@TK2MSFTNGP11.phx.gbl...
Hi all,

How can you control where a placeholder is positioned on a Web Form? AFAIK, It doesn't seem to support a style or other positioning (or even sizing)
attributes.

TIA,

John

Nov 18 '05 #2
If you want to use a PlaceHolder and position it try adding a litercontrol
to it at run-time and use a span tag around your controls you want to place
in the PlaceHolder.

myPlaceHolder.Controls.Add(New LiteralControl("<span
style=""position:absolute;left:100;top:120;"">"))
myPlaceHolder.Controls.Add(MyNewControl)
myPlaceHolder.Controls.Add(New LiteralControl("</span>"))

-Stanley

"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hi all,

How can you control where a placeholder is positioned on a Web Form? AFAIK, It doesn't seem to support a style or other positioning (or even sizing)
attributes.

TIA,

John

Nov 18 '05 #3
Thanks, gentlemen. I was reading an example where I think the author had
used a Panel instead.

What would one choose to use a Placeholder for? I see that it allows a
place to predefine a container that you could programmatically add controls
to, for example, but a Panel seems to do that same thing with the added
bonus of being able to position at design time--rather than having to handle
it yourself w/ a span.

Thanks again,

John

"John Spiegel" <js******@YETANOTHERSPAMHATERc-comld.com> wrote in message
news:#H*************@TK2MSFTNGP11.phx.gbl...
Hi all,

How can you control where a placeholder is positioned on a Web Form? AFAIK, It doesn't seem to support a style or other positioning (or even sizing)
attributes.

TIA,

John

Nov 18 '05 #4

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

Similar topics

12
by: Thomas Lotze | last post by:
Hi, I'm trying to figure out what is the most pythonic way to interact with a generator. The task I'm trying to accomplish is writing a PDF tokenizer, and I want to implement it as a Python...
2
by: theo | last post by:
Hi... I wish to extract the text content of an Xml file and assign it to DropDownList controls at runtime.I can get the Xml file text content into the DropDownList controls (Ex...if 5 Xml text...
1
by: | last post by:
Hello Guys, I am having difficult time with the placeholders. I have a placeholder which gets loaded with listbox at run time. I want the listbox to be displayed on a cell in the table. Now...
2
by: nemesis.saurabh | last post by:
hi, can we dynamically change the position of MCMS placeholder on the web page.. Problem is i have 6 placeholders on my template and for a particular posting i need to fill only 4 of them. can...
0
by: seigo | last post by:
Hello, I faced with the following problem. I have a PlaceHolder on a page and a few UserControls which have custom events, for instance: public delegate void SelectHandler(object sender,...
1
by: Mario Figueiredo | last post by:
Hello everyone, I'm having trouble controlling the cursor position when I make two consecutive calls to the get family of functions. This problem does not happen if there is an output in...
3
by: Herb | last post by:
I've found how to use javascript to embed a Windows Media Player in a web page. How do I go about controlling the player in response to user input? There should be calls to start, stop and also...
3
Nikky
by: Nikky | last post by:
I m using C#.net i m using a placeholder which contains dynamic table and dynamic checkbox .i want to position check box after each row.but i want to place it after table.not within the table. ...
3
by: Michiel Rapati-Kekkonen | last post by:
I have a continuous form, with 22 rows on display. I make a change in some row and have the form requeried. (I have to, because the query on which the form is based is not updateable, and the...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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,...

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.