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

Which dynamic control to generate this html?

Hi,

I need to create the html below with dynamic controls

<span class="myclass">
<h3>text1</h3>
<h4><span>Price <strong>text2</strong> | Duration
<strong>text3</strong></span></h4>
</span>

text1,text2, text3 need to be bound dynamically.

If I was doing this with a non-dynamic asp.net page, I would have something
like

<span class="myclass">
<h3><asp:Label id="lb1"/></h3>
<h4><span>Price <strong><asp:Label id="lbl2"/></</strong> | Duration
<strong><asp:Label id="lbl3"/></</strong></span></h4>
</span>

However it all needs to be dynamic.
I'm not clear either how to generate stuff like h3,h4 by adding child
controls to a parent, or if I set these through the text property, how I
then indicate where I want the label controls to go, relative to the text
I've set.

TIA
Martin
Apr 25 '06 #1
2 1999
Been working with XML too long...

I guess the answer is to have lots of literal controls that contain text
which is not well formed.

If this doesn't work, I'll be back
Martin

"Martin" <x@y.z> wrote in message
news:ud*************@TK2MSFTNGP02.phx.gbl...
Hi,

I need to create the html below with dynamic controls

<span class="myclass">
<h3>text1</h3>
<h4><span>Price <strong>text2</strong> | Duration
<strong>text3</strong></span></h4>
</span>

text1,text2, text3 need to be bound dynamically.

If I was doing this with a non-dynamic asp.net page, I would have
something like

<span class="myclass">
<h3><asp:Label id="lb1"/></h3>
<h4><span>Price <strong><asp:Label id="lbl2"/></</strong> | Duration
<strong><asp:Label id="lbl3"/></</strong></span></h4>
</span>

However it all needs to be dynamic.
I'm not clear either how to generate stuff like h3,h4 by adding child
controls to a parent, or if I set these through the text property, how I
then indicate where I want the label controls to go, relative to the text
I've set.

TIA
Martin

Apr 25 '06 #2
You could set up a css file with a range of classes that performed the
formatting you requiered. You could then dynamically change the CssClass
atribute of the label control whenver you neede to.

"Martin" wrote:
Hi,

I need to create the html below with dynamic controls

<span class="myclass">
<h3>text1</h3>
<h4><span>Price <strong>text2</strong> | Duration
<strong>text3</strong></span></h4>
</span>

text1,text2, text3 need to be bound dynamically.

If I was doing this with a non-dynamic asp.net page, I would have something
like

<span class="myclass">
<h3><asp:Label id="lb1"/></h3>
<h4><span>Price <strong><asp:Label id="lbl2"/></</strong> | Duration
<strong><asp:Label id="lbl3"/></</strong></span></h4>
</span>

However it all needs to be dynamic.
I'm not clear either how to generate stuff like h3,h4 by adding child
controls to a parent, or if I set these through the text property, how I
then indicate where I want the label controls to go, relative to the text
I've set.

TIA
Martin

Apr 25 '06 #3

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

Similar topics

5
by: RA | last post by:
I have created a button dynamically; which has been added to a TableCell of a TableRow of a Table control. Is there a way to add onclick event which calls a procedure on the Server-side itself....
2
by: Matt | last post by:
Hi, Can someone provide some information on how to create a control dynamically based on the contents of another dynamic control. In my experience, all dynamic controls must be created in the...
1
by: amirmira | last post by:
I have a multithreaded application is ASP.NET that checks the status of a process every 2 seconds. After the thread has completed, the values of dynamically added controls need to be changed...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
2
by: dawg1998 | last post by:
I have a page that creates dynamic textboxes based on the number of fields a user chooses to fill out. This process worked great when the page was standalone. However, when I move to a...
3
by: rockdale | last post by:
Hi, All: I have a datagrid with TemplateColumn as following: <asp:TemplateColumn Visible="False" > <ItemStyle Width="0px"></ItemStyle> <ItemTemplate> <asp:Label id="lblMin_Value"...
1
by: Larry Bud | last post by:
A dynamic control (A dropdown) is created in PageLoad, but the value of the dynamic control dictates where it's added (such as which cell in a table) on a postback. Seems like a catch-22. I...
0
by: imranabdulaziz | last post by:
hi all , i am mess with the one situation. i am using asp.net2.0 ,C# and sql server 2005. I have checkboxlist and based on user selection i creates dynamic controls(which code is in...
3
by: fnz60 | last post by:
hi every body i have a site designed by asp.net . it use database to save data. how can i generate html pages for my data ? i nedd this work to improve my site level in search engine sites .
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
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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.