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

Custom HTML Control Tags - Lets Try Again :)

Hi all, firstly appologies for the earlier stupid post.

Ok, I am using a repeater to make a table. This will be used to allow the
user to select a particular object (the table displays the contents of an
ArrayList of objects).

I would like todo this by selecting a radio button applied on each row of my
repeater. Quick example below, the "o" = a radio button.

| Name
----------
o | James
o | David
o | Bob

How do i make dynamic HTML controls? Or do i need to use manul HTML here?

I.e. i cant put the following code in my itemTemplate:

<asp:RadioButton ID="<% DataBinder.Eval(Container.DataItem, "NameID")%>"
runat="server" GroupName="objects" />

Any pointers would be appreciated!

Thanks,
Taz
Feb 10 '06 #1
1 933
Hi Taz,

You can create and add the controls dyamically to your web application.
Use the below example.

Create a table and add the table to the form. Get the handle of the
table from code behind file. Add radio button control to the table
dymically

Assume hTable is the Name of the HtmlTable

Dim htmlRow as New HtmlRow
Dim htmlColumn as New HtmlColumn

Dim rdButton as New RadioButton
rdButton.ID = "ID"
rdButton.Value = "Value"

htmColumn.Controls.Add(rdButton)
htmlRow.Columns.Add(htmlColumn)
hTable.Rows.Add(htmlRow)

Feb 10 '06 #2

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

Similar topics

1
by: Steven | last post by:
H I'm struggling to think this one through At run time I want to be able to read a layout HTML file from a database which includes tags for modules, e.g ...
2
by: Troy | last post by:
I have been trying for 2 weeks to figure out how to implement a table as a member variable that the user can setup with the property designer with no luck. The code below adds the table to the...
0
by: Lamar | last post by:
I made a Custom composite web control that incorporates a menu with buttons and an encapsulating table cell for the child controls that are within the custom control's tags in the HTML. All the...
2
by: EDOnLine | last post by:
Is it possible to create Custom Tags in HTML and have ASP.NET replace these custom tags with info from my database before the page is returned to the client? For example.... In an aspx file I...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
21
by: One Handed Man \( OHM - Terry Burns \) | last post by:
When using a custom control. In order to check and see if values have changed one has to implement the IPostBackDataCollection interface. The values returned for the control seem to be simply a...
2
by: Frank | last post by:
From: "Frank" <fkaesser@pfmail.com> Subject: Can I Use HTML Text Writer i a Custom Control to Render the <head> Section? Date: Wednesday, January 18, 2006 11:38 AM I would like to create a...
3
by: Rolf Welskes | last post by:
Hello, this is a hint only. If you make a custom control for example witch generates code <div......</div> and I put such a control in a page then in html-view of the aspx-file I could...
1
by: Abdo Haji-Ali | last post by:
Previously I used to create user controls if I wanted to use a specific set of controls in multiple pages, however I want to deploy my control in other applications so I thought of creating custom...
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
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: 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:
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...
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.