I am working on simple website making a textbox and a button. while clicking on button error should be given that "textbox value can't be empty". i tried from many sites but my issue is not yet resolved. one important thing to mention this button and textbox is not enclosed in a form.
<input id="AccountText" type="text" name="AccountText"
class="form-control" placeholder="Name" required=''/>
<input id="AddAccount" type="button" class="btn btn-primary" value="Save" />
i have already tried controltovalidation but it is also not working for me.
ControlToValidateis a property of ASP.Net validation controls.