•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 402,549 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,298 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 906 | Replies: 2
![]() |
•
•
Join Date: Aug 2007
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
as 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.
then, create a Regex object and join it with a regular expression. if you have difficulties with that, i'd be glad to help.
hope this helped
pygmalion
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;
Regex exp = new Regex(@"...");
hope this helped
pygmalion
Last edited by pygmalion : Aug 29th, 2007 at 7:51 pm.
Microsoft: "You've got questions. We've got dancing paperclips."
![]() |
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- text box validataion (ASP.NET)
- Validation control (ASP.NET)
- .net validation/javascript conflict (ASP.NET)
- Validation to avoid Duplicates in Access (Visual Basic 4 / 5 / 6)
- Limitation (ASP.NET)
- validating a textbox without using validation control (ASP.NET)
Other Threads in the C# Forum
- Previous Thread: multiple image sequence
- Next Thread: my calendar leapyear shows wrong


Linear Mode