Next, drag and drop a Required Field Validation control below the Text Box.
Set the Control To Validate property of Required Field Validator control to Text Box1 (i.e. Also, set its Error Message property to "Please enter company name".
A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source.
Now you can ask questions directly to me on my new site ASPForums.
Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.