Dynamic Required Field Validator
<p>I am creating dynamic controls , I would  like to add required field validator, below is my code, but required field validator is not firing. I am adding control in page_init. Anybody through some light why this code is not functioning. same piece of code is working when I am adding single control. and when I am trying to add multirow control its not working.</p>

<pre><code>ctrls.Add(New LiteralControl("&lt;br /&gt;"))
                ctrls.Add(CreateRequiredFieldValidatorMR(StrControlID.ToString, "Required field."))


Private Function CreateRequiredFieldValidatorMR(ByVal strControlID As String, ByVal ErrorMessage As String) As RequiredFieldValidator
    Return CreateRequiredFieldValidatorMR(strControlID, ErrorMessage, String.Empty)
End Function

Private Function CreateRequiredFieldValidatorMR(ByVal strControlID As String, ByVal ErrorMessage As String, ByVal InitialValue As String) As RequiredFieldValidator
    Dim rfv As New RequiredFieldValidator
    rfv.ID = "ReqVal_" &amp; strControlID
    rfv.ControlToValidate = strControlID
    rfv.Display = ValidatorDisplay.Dynamic
    rfv.ErrorMessage = ErrorMessage
    rfv.InitialValue = InitialValue
    rfv.ValidationGroup = "ReqGrp_" + strControlID
    rfv.ForeColor = Drawing.Color.Red
    rfv.Font.Bold = True
    Return rfv
End Function
</code></pre>
