jQuery 自动完成和 gridview 页脚文本框 ASP.NET

发布于 2024-10-03 11:25:11 字数 467 浏览 0 评论 0原文

<script src="JQuery/jquery-1.4.1.min.js" type="text/javascript"></script>

<script src="JQuery/jquery.autocomplete.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
    $("#<%=(GVOperatos.Footer.FindControl('txtEPFNo')).ClientID%>").
     autocomplete('Search_EPFNo.ashx');});
</script>

我无法在 javascript 中获取 gridview 页脚文本框客户端 ID。如何获取该 ID。 谢谢。”

<script src="JQuery/jquery-1.4.1.min.js" type="text/javascript"></script>

<script src="JQuery/jquery.autocomplete.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
    $("#<%=(GVOperatos.Footer.FindControl('txtEPFNo')).ClientID%>").
     autocomplete('Search_EPFNo.ashx');});
</script>

I cant get gridview footer textbox client id in javascript.how to get that one.
thanx.'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

原野 2024-10-10 11:25:11

您可以使用自定义选择器来选择 ASP.NET 控件。这是一篇解释该方法的博客文章。当需要选择 ASP.NET 控件时它会派上用场。

http://lanitdev.wordpress.com/ 2009/06/08/扩展-jquery-to-select-asp-controls/

You can use a custom selector to select asp.net controls. Here is a blog post explaining the method. It comes in handy when needing to select asp.net controls.

http://lanitdev.wordpress.com/2009/06/08/extending-jquery-to-select-asp-controls/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文