|
luckyCO
|
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
|