Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am new to Event Handlers in ASp.Net. My doubt is, In a page there are 3 Textboxes (Name, Email and Details). Out of those 3, Name and Email are the mandatory fields. Wilthout fillinf those textboxes, if user clicks on SAVE, it should give an error (red mark on the mandatory fields) and shouldn't save.

I am working on a website with the help of it's API.

The only thing i do have is, The GUIDs of the Name and Email fields.

Can anyone please help me on how to do this? I do not have code and all.... i have to get a brief idea before doing this. Thanks in advance.

What I have tried:

I tried in google but syntax is unable to find. Any help would be appreciated.
Posted
Updated 29-May-16 21:22pm
v2
Comments

1 solution

Pay visit to these links:

How to: Validate Required Entries for ASP.NET Server Controls

RequiredFieldValidator Class

You should have googled like this: "validator asp.net required textbox"
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900