使用Web方法检查是否存在asp控件 [英] check if asp control exist using web method
本文介绍了使用Web方法检查是否存在asp控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个asp:下拉框和一个文本框
在文本框中自动完成,我称之为webmethod,
所以当输入时文本框,我得到城市列表,exp。迪拜,都柏林,duraet
但是我想检查asp:dropdown是否存在以及它是否具有web方法的价值
如何做到
I have a asp: dropdown box and a textbox
in textbox autocomplete , i call webmethod,
so when du entered in textbox , i get list of cities ,exp. dubai,dublin,duraet
but i want to check if asp:dropdown is there and if it has value in web method
how to do that
推荐答案
我使用带有参数的jquery(document.elementbyid),它有效...
I used jquery (document.elementbyid) with parameters , and it works...
这篇关于使用Web方法检查是否存在asp控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文