forum.venkateswarlu.net
      Register      Login
How to get the data when column value is the combination of hyphen and numeric in a web method in Auto complete extender

1 replies to this topic

Murali Krishna #1
Member
26 Points
Posted on 10 Jul 2013 11:45 AM IST
In backend I have data like below :

sno pmname
-----------------------
101 101-12a-58

102 Murali Krishna

In front end if I entered 101 in textbox it will display the desired output as : 101-12a-58

If my data changes as below :

sno pmname
-----------------------
101 101-12-58

102 Murali Krishna

Now In front end if I entered 101 in textbox it will display the output as : 36  [JUNK VALUE] .

To overcome this we have to modify the query in Stored Procedure as  :

SELECT char(39)+pmname+char(39) FROM tablename where pmname like '%'+@str+'%' 


This small change fixes the issue. 




 
Dot Net     735 views     Reply to this topic
Cherukuri Venkateswarlu #2
Member
140 Points
Replied on 12 Jul 2013 05:28 PM IST Hi Murali,

Thanks for posting a new question (related to auto complete extender issue) and providing fix for the same.

Regards,
Venkateswarlu Cherukuru
 
Reply to this topic