Mega Code Archive
RequiredFieldValidator requires a user to enter a value into a form field before submitting the form
Two important properties when using the RequiredFieldValdiator control:
ControlToValidate: The ID of the form field being validated.
Text: The error message.
<%@ Page Language="C#" %>
Show RequiredFieldValidator