Click here to Skip to main content
16,007,885 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to compare set of words(String comparison)in text box and which are words stored in SQL database.I have to do it in ASP.Net but i don't know how to do it. can you please help me.
Posted

your question is not clear to me, whether you want to compare the text of textboxes or the data of database.
however you can use compare function of string, what you have to do is you should store that values to string format if you are fetching them from database
compare function works as follows:
if according to dictionary first string comes earlier then value >0(+ve) will be returned
if equal then zero
otherwise < 0 (-ve)

thanks
 
Share this answer
 
This is what MSDN says about string comparision in .Net.

http://msdn.microsoft.com/en-us/library/system.string.compare.aspx[^]
 
Share this answer
 

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