I am using below code to check only one radio button which is in gridview item template. But it allow multiple selection as CheckBoxes.
My code:
Please help me.
Thanks !
Pankaj Singh
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Master BillaPosted Aug 12, 2009, 11:58 AM
Yes you need write code like this way to allow only one radionbutton select to at a time.
Just add HTML Control instead of the ASP radio button
Here sample code
/>
value='<%# Eval("YourCoumnName") %>' />
Thank youKirtan PatelPosted Aug 12, 2009, 11:15 AM
Can you Post the Code you are using for Checking the Check Box ? it will help me to rectify your problem correctly :)
Kotti 0Posted Aug 12, 2009, 11:12 AM
Get the value by
string strvalue=Request.Form("rbname");