vb.net - How to create radio button by String -


how create radio button string in vb.net ?

i must create 1 table include multiple radio button.

my code

dim integer = 0 dim str string = "<table><tr><td><asp:radiobutton id='radiobutton" & & "' runat='server' text='" & & "' /></td></tr></table>" response.write(str) 

note: must use radio button control .net

you can't use radiobutton way since it's server control. have write pure html on response:

dim integer = 0 dim str string = "<table><tr><td><input id='radiobutton' type='radio' name='radiobutton' value='" & & "' />" & & "</td></tr></table>" response.write(str) 

or have use htmlgenericcontrol without writing directly on response:

dim table new htmlgenericcontrol("table"); dim tr new htmlgenericcontrol("tr"); dim td new htmlgenericcontrol("td"); dim radio new radiobutton(); table.controls.add(tr); tr.controls.add(td); td.controls.add(radio);  page.controls.add(table); 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -