I have a custom user control I created and I'm trying to open up the controls inside of it to the parent aspx page that it will reside in. I have a radio button so I created a public property like so:
public Int32 _radioEnroll
{
get { return Convert.ToInt32(radioEnroll.SelectedValue); }
set { Convert.ToInt32(radioEnroll.SelectedValue) = value; }
}
Now when I try this, the get works fine, however the set errors out saying:
The left-hand side of an assignment must be a variable, property or indexer
I've tried everything including casting but it won't work. The Value of the radios are all integers and will be stored in my db as integers.
What am I missing?