I have a wrapper UserControl control around a DropDownList for managing language specific translation on the DropDownList values.
I also have a required field validator that is requried for the inner dropdownlist.
How can I expose this control via the usercontrol to allow validation?
The error I am currently getting is as follows:
... cannot be validated. at System.Web.UI.WebControls.BaseValidator.CheckControlValidationProperty(String name, String propertyName)
at System.Web.UI.WebControls.BaseValidator.ControlPropertiesValid()
Edit: I'm now using...
[ValidationPropertyAttribute("SelectedValue")]
.... With
public string SelectedValue
{
get { return cboI18nItems.SelectedValue; }
}
Which is now working if I check the IsValid property of the page on postback.