Hi,
I need to create the html below with dynamic controls
<span class="myclass" >
<h3>text1</h3>
<h4><span>Pri ce <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:Labe l id="lb1"/></h3>
<h4><span>Pri ce <strong><asp:La bel id="lbl2"/></</strong> | Duration
<strong><asp:La bel 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 2 2015
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******** *****@TK2MSFTNG P02.phx.gbl... Hi,
I need to create the html below with dynamic controls
<span class="myclass" > <h3>text1</h3> <h4><span>Pri ce <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:Labe l id="lb1"/></h3> <h4><span>Pri ce <strong><asp:La bel id="lbl2"/></</strong> | Duration <strong><asp:La bel 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
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>Pri ce <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:Labe l id="lb1"/></h3> <h4><span>Pri ce <strong><asp:La bel id="lbl2"/></</strong> | Duration <strong><asp:La bel 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
Any suggestions?
I tried with
btnAdd.Attributes.Add("onClick","AddItem();")
|
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 Initialize
stage of an ASP.Net page life cycle. Because viewstate is not available in
the initialization stage, I cannot get the value of the 1st dynamic control
to create the second control.
|
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 depending on the return value
from the process just completed on the second thread. The problem I am having
is that while the code seems to work correctly (I am performing a
response.write and writting out the values as a HTML comment), the final...
|
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 that for server control component ,
code is running on the server side.
But if I take as example a Label. I place on a webform an HTM label control
and a WebForm label control, I could see that properties are different for
|
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 Content/MasterPage setup, the MasterPage Form seems to be
interfering with the ability of my code to retrieve the value in the
dynamic control.
Are there any ideas on why this is happening or how to work-around the
problem? What is the syntax to find a...
| |
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" Visible=False runat="server" Text='<%#
DataBinder.Eval(Container, "DataItem.min_value") %>'>
</asp:Label>
|
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 need to retrieve the value of it, before it's
created... how do I do this?
|
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 filterbutton_Click event and i call createcontrols function(public) in that ).But when i select value of that control(dynamic created) in another button click event(searchbutton) first it create fuction does not create dynamic control second as a result i...
|
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 .
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |