hi,
i am developing one application in C# .net and i have some fields including mobil number and i want to search a mobile .
but i have store the mobile in sequence like (986)258-5896
and
when ever i am trying to search mobile number 9862585896 it is not
showing me a mobile number iot just give me blank. and when i am
searching like 986 so it give me searching result
Thanks ...
Kamlesh
Loading

Sam HobbsRank #108 · 20.5K reputationPosted Jan 28, 2011, 8:05 AM EST
Suthish NairRank #92 · 22.8K reputationPosted Jan 28, 2011, 8:19 AM EST
Suthish NairRank #92 · 22.8K reputationPosted Jan 30, 2011, 8:27 AM EST
So other members can easily find the answers.
Kamlesh Nikam81 reputationPosted Jan 30, 2011, 10:16 PM EST
SearchQuery = SearchQuery + " and (MobileTelephoneNumber like '%" + txtContactSearch.Text.Trim() + "%')";
this quiry and i want to search by directly number (9985627255) and i store the number like (998) 562-7255
and while serching if i put 9985627255 it will not search..
so please help me
for searching the number
thanks
Kamlesh Nikam
Suthish NairRank #92 · 22.8K reputationPosted Jan 31, 2011, 8:11 AM EST
select REPLACE(REPLACE(REPLACE(REPLACE('(998) 562-7255', '(', ''), ')', ''), '-', ''),' ','')Sam HobbsRank #108 · 20.5K reputationPosted Jan 31, 2011, 8:57 AM EST