I am doing mvc custom client side validation that makes an ajax call back to the server before working it's way down to the database to check if a value is unique the issue I have is that using this type of client validation leaves variables rendered as text on the page as shown:

    <input class="form-control input-validation-error" data-val="true" data-val-length="prop must be no longer than 100 characters" data-val-length-max="100" data-val-required="The prop field is required." data-val-unique="prop must be unique" data-val-unique-schema="schema" data-val-unique-type="Entity type" data-val-unique-url="Validation method" id="prop" maxlength="100" name="prop" type="text" value="" aria-required="true" aria-invalid="true" aria-describedby="prop-error prop-error prop-error prop-error prop-error prop-error prop-error">

Would this be a security issue having the schema, entity name and property as plain text? If it is then is there a better way to do it?

Related posts

Recent Viewed