在自动完成文本框asp.net中获取所选项目的ID [英] get id of the selected item in autocomplete text box asp.net

查看:95
本文介绍了在自动完成文本框asp.net中获取所选项目的ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

因为ajax的自动填充扩展程序能够显示项目建议.那是完美的.但是我想要的是当我从自动完成文本框中选择一个项目时,它应该触发一个事件,而且我也应该能够获取所选项目的ID.有可能做到这一点.如果不在ajax中,还有其他方法可以做到这一点.请帮助

谢谢

Hello

as autocomplete extender of ajax is able to show item suggestions. that is perfect. but what i want is when i select an item from auto complete textbox it should fire an event and also i should be able to get id of the selected item. is it possible to do that. if not in ajax is there any other way to do that. please help

Thanks

推荐答案

请参阅此处可能对您有所帮助,但这与jquery和asp.net一起使用

http://codeasp.net/blogs/raghav_khunger/microsoft-net/943/jquery-autocomplete-how-to-get-id-or-value [
See here once may help you but it is with jquery and asp.net

http://codeasp.net/blogs/raghav_khunger/microsoft-net/943/jquery-autocomplete-how-to-get-id-or-value[^]


这篇关于在自动完成文本框asp.net中获取所选项目的ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆