I have a UserControl wrapper around a DropDownList to control language-specific translation by DropDownList values.
I also have a required field validator that is set for an internal dropdown.
How can I open this control through 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 am using now ...
[ValidationPropertyAttribute("SelectedValue")]
.... WITH
public string SelectedValue
{
get { return cboI18nItems.SelectedValue; }
}
What now works if I check the IsValid property on the page after the postback.
source
share