.net - Get selected radio button from dynamically generated set in ASP.NET -


i'm working asp.net (2.0), , want generate group of radio buttons data source. simple enough using radiobuttonlist, want text associated each radio button have more formatting...in particular, of text should regular weight, bold. doesn't seem match radiobuttonlist.

using repeater, can create single radiobutton each item in dataset, give them same groupname, , they'll work correctly on client side...but when form submitted, it's not clear me how discover button selected (server side). unlike radiobuttonlist, don't have single containing object can ask selected item from.

we use bit more interactive, posting information server on radio button click, we'd avoid postbacks if possible.

am missing simple?

put radiobutton's in panel, iterate control collection of panel

foreach (control ctrl in panel1.controls)     {         if (ctrl.gettype().name == "radiobutton")         {             if (((radiobutton)ctrl).checked)             {                 //...do stuff..             }         }     } 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -