By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,054 Members | 1,310 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,054 IT Pros & Developers. It's quick & easy. string validation

P: 1
hello dear's...
plz clear my doubt in

consider 2 textbox.first one is for holding a simple statement.second one is for holding paragraph.if a particular word exist in both the textboxes means ,it need to prompt an error(don't forget the second textbox contains paragraph)
Jul 18 '12 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 10K+
P: 12,408
Loop through every word in one textbox and search for it in the other.
Jul 18 '12 #2

Expert Mod 5K+
P: 9,731
You could try using the String.Contains method to check if the word exists.

Or you could use a Regular Expression to see if the string matches the regular expression.

There are a lot of ways to accomplish this.

Jul 27 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.