, , RadioButton, HtmlInputRadioButton Repeater. RadioButtonList , HTML , RadioButtonList ( Twitter Bootstrap ASP.NET WebForms).
JavaScript w/jQuery UniqueID, name , . , PostBack , ASP.NET .
This workaround worked fine in my scenario, but beware of any possible side effects or cases of edges. The page I applied this to was pretty simple. I did not check if it works with client side validation.
Here is a sample JavaScript code I used:
$(function(){
$('input.custom-radio-name').each(function(i, radio){
var name = radio.name,
groupNameIndex = radio.name.lastIndexOf('$') + 1,
groupName = radio.name.substring(groupNameIndex);
$(this).data('aspnetname', name);
radio.name = groupName;
});
$('form').submit(function(){
$('input.custom-radio-name').each(function(i, control){
var aspnetname = $(this).data('aspnetname');
control.name = aspnetname;
});
});
});
See an example at http://jsfiddle.net/yumN8/
source
share