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 HobbsPosted Jan 31, 2011, 1:57 PM
Suthish NairPosted Jan 31, 2011, 1:11 PM
select REPLACE(REPLACE(REPLACE(REPLACE('(998) 562-7255', '(', ''), ')', ''), '-', ''),' ','')Kamlesh NikamPosted Jan 31, 2011, 3:16 AM
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 NairPosted Jan 30, 2011, 1:27 PM
So other members can easily find the answers.
Suthish NairPosted Jan 28, 2011, 1:19 PM
Sam HobbsPosted Jan 28, 2011, 1:05 PM