You must install it in the code for
rfvHouseName.ValidationGroup = ValidationGroup;
Or, if you really want to use it in a string, you should use it like this:
<asp:RequiredFieldValidator ValidationGroup='<%# ValidationGroup %>'
However, for the second to work, you have to call DataBind()
from code every time .
protected void Page_Load(object sender, EventArgs e)
{
DataBind();
}
source
share