如何将GridView ID分配给jQuery函数 [英] how to assign gridview id to jquery function

查看:61
本文介绍了如何将GridView ID分配给jQuery函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi,

i a webpage that is master/child relationship i.e my child page contains textbox and button when i click button data should bind to gridview from database here my grid contains 50 rows so i need to create fixed header and vertical scroll for grid for this i have searched in goolge i got one simple jquery plugin i tested that in one webpage that contains only gridview (id="girdview1") no other control its working fine when i have applied the same functionalities in my application gridview (id= "subordresGrid") its not working and i have observed here that is my appliction id is subordresGrid when i seen in viewsource from browser the id of my application gridview is changed to "ctl00_mainContent_subordresGrid" and i observer in my test applicatin gridview id same in page viewsource and i have tried with jquery function is as:

<script type="text/javascript">
$(document).ready(function () {
$('#<%=GridView3.ClientID %>').Scrollable();
});
</script>



so please give solution and where i have done mistake....

thanks.

推荐答案

(document).ready(function(){
(document).ready(function () {


('#<% = GridView3.ClientID %> ').Scrollable(); }); < /script > 因此,请提供解决方案以及我做错了的地方.... 谢谢.
('#<%=GridView3.ClientID %>').Scrollable(); }); </script> so please give solution and where i have done mistake.... thanks.


类似的线程:
> http://stackoverflow.com/questions/11454810/assigning-id-to-gridview- table-data [ ^ ]
Simiilar thread:
http://stackoverflow.com/questions/11454810/assigning-id-to-gridview-table-data[^]


这篇关于如何将GridView ID分配给jQuery函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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