Sometimes you put up with things unconsciously until one day you think, hang on, why don't I just to "x." So what I am referring to is simply that the ASP.NET RadioButton control does not have a property for Value. I have no doubt that this is purposeful, but either way, I required a RadioButtonControl with a value Property.
Hide Code [-] using System.Web.UI.WebControls;
/// <summary>
/// Summary description for ValueRadioButton
/// </summary>
public class ValueRadioButton : RadioButton
{
private string m_value;
public string Value
{
get { return m_value; }
set { m_value = value; }
}
public ValueRadioButton()
{
//
// TODO: Add constructor logic here
//
}
}
{..} Click Show Code
Cheers,
Andrew :-)