أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
As required field validator in ASP.NET.
In HTML5 required attribute was introduced to textual (if I may) input element. It will make sure a form won't submit unless that input element has value. Think about it as the required field validator in ASP.NET. Here is a simple example, the page won't submit to itself until the text box has some value
<!doctype html>
<html>
<head>
<title>Using 'required' attribute - also 'placeholder' attribute ;)</title>
</head>
<form>
<input type="text" placeholder="enter anything" required /> <button>Submit</button>
<form>
</html>
I hope this answers your question.
Happy coding :)