在JavaScript中获取ASP控件 [英] Get asp Control in javascript

查看:61
本文介绍了在JavaScript中获取ASP控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我都在使用JavaScript datePicker,想知道我如何定位asp文本框.如果我使用html文本框,那么我可以获得像$(''#textbox1'')这样的ID,但是我必须使用asp文本框,您怎么能做到这一点?我试过$(''<%= textbox.ClientID%>'')但不起作用

Hey all i am using a javascript datePicker and want to know how i can target an asp textbox. If i use a html textbox then i can get the id like this $(''#textbox1'') but i have to use an asp textbox, how can you do this? i tried $(''<%= textbox.ClientID %>'') but it doesnt work

推荐答案

(''#textbox1'')但我必须使用asp文本框,该怎么办?我尝试了
(''#textbox1'') but i have to use an asp textbox, how can you do this? i tried


(''<%= textbox.ClientID%>'')但它不起作用
(''<%= textbox.ClientID %>'') but it doesnt work


http://stackoverflow.com/questions/10618196/how-to-find-a-asp-control-id-using-java-script [
Get id of Asp control and pass value [^]

http://stackoverflow.com/questions/10618196/how-to-find-a-asp-control-id-using-java-script[^]


这篇关于在JavaScript中获取ASP控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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