Hi All,
Im new to ASP.NET & C#. I have designed a webpage where a user has to give his details like Name, Age, Sex, Location and subnit it to another page. Now it works even if the user gives details only about his name & sex. SO im trying to program it in such a way that only if the user enters all the details, he should be able to submit. I have heard of something called Validation COntrols. I hope I have to make use of this mechanism for my purpose. Hence when I browsed in the net, I came to know about 5-6 functions of Validation COntrols. But im not sure how to incorporate them in my code. COuld anyone help me out?
Thanks.
Kally
kally
0
Newbie Poster
Recommended Answers
Jump to Postas you're trying to enable validation in a webpage, why not use JavaScript?
else, you can still implement regular expressions in your code to check on input fields. this you can do in your backbone c#-code as follows. first include the following library.
using System.Text.RegularExpressions;
then, …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.