Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,843 members, 7,810,253 topics. Date: Saturday, 27 April 2024 at 02:37 AM

Have Problem Embeding Radio Buttons In A Table Cell - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Have Problem Embeding Radio Buttons In A Table Cell (1224 Views)

Assist Me Wit Php Code To Insert Multiple Records In A Table / Java : How Can I Add Combo Box To A Table / Have Problem Finding My Database; A Java Guru To Assist (2) (3) (4)

(1) (Reply)

Have Problem Embeding Radio Buttons In A Table Cell by luckyCO(m): 9:29pm On Feb 23, 2007
Am writing a program in ASP.Net that warrants that I should embede more than one Radion Buttons into table cell and later control it programatically. I wrote the code below but it wasnt displaying the radio Button, I later used HTML control(Radio) It displayed but I cannot programatically control it and moreso error on the onclick event.


Plz help me study the code and tell me what is wrong.


Dim K As Long
Dim iFieldCount as integer =3

for k=1 to 10


Dim oRow1 As New TableRow()
For x = 0 To (iFieldCount )
Dim oCell As New TableCell()


oCell.Text ="<asp:RadioButton ID='RadioButton" & trim(str(k)) & trim(str(x)) & "' runat='server' OnClick='ShowUrself'/>"

oRow1.Cells.Add(oCell)
Next

tblExample.Rows.Add(oRow1)


next

Sub ShowUrself (Sender as object, E As EventArgs)
' Can do things here
end sub

(1) (Reply)

Networking,developer,dba? / Programming Challenge - Navigate Using Same Cache Header / Java Jdbc

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 8
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.