Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
How to set validation Settings by codes in vb.net
posted

I am in vb.net. How do I set validating setting for a textbox control by codes? I would like to enable IsRequired and set custom notification text message based on conditions.

Something like: 

Me.UltraValidator.SetValidationSettings(txtDBServer, .......)

Thank you.

Parents
  • 5389
    Verified Answer
    posted

    bcsite,

    This article in our online documentation provides detailed steps on how to set validation settings in code and also how to create custom text when there is a validation error.  What this article does not cover is how to use the IsRequired property- in Step 2, rather than set the ValidationSettings' Condition property, set its IsRequired property to true.

    Hope this helps,

    ~Kim~

Reply Children