Dear viewers hear I will show how to use RequiredFieldValidator control . sometimes we need to create must field to input data to database .Such situation JQUERY validations can be used for validation but ASP.NET has given opportunity to its required field validator which is very easy to use and understand and great client site validation control. After taking necessary textboxs we can take required field validator control beside particular textbox then ControlToValidate property need s to be used for assigning target textbox control. ErrorMessage property of RequiredFieldValidator needs to be used which message will be displayed for warning.
RequiredFieldValidator ASP.NET C#