Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/265.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在ColumHeader viewgrid中获取选定对象_C#_Jquery_Asp.net_Gridview - Fatal编程技术网

C# 在ColumHeader viewgrid中获取选定对象

C# 在ColumHeader viewgrid中获取选定对象,c#,jquery,asp.net,gridview,C#,Jquery,Asp.net,Gridview,我有以下代码: $(document).ready(function(){ var input $("#<%=GridViewBin.ClientID%> tr th a").hover(function() { $("#<%=GridViewBin.ClientID%> tr th input").each(function (index) { //HERE I HAVE TO get se

我有以下代码:

$(document).ready(function(){

    var input 
    $("#<%=GridViewBin.ClientID%> tr th a").hover(function() {          
        $("#<%=GridViewBin.ClientID%> tr th input").each(function (index) {
            //HERE I HAVE TO get selected object, HOW?
            input = $(this);
        })
        $(input).show();            
   },function() {
        $(input).hide(); 

   });
});
$(文档).ready(函数(){
变量输入
$(“#tr th a”).hover(函数(){
$(“#tr th input”)。每个(函数(索引){
//在这里我必须得到选定的对象,如何?
输入=$(此项);
})
$(输入).show();
},函数(){
$(输入).hide();
});
});
我想获取有关选择显示或隐藏的输入的ID。此输入位于gridview的列标题中

有什么线索或帮助吗?

<代码>$(文档).ready(函数()){
$(document).ready(function(){
        var input; 
        $("#<%=GridViewBin.ClientID%> tr th a").hover(function() {          
            $("#<%=GridViewBin.ClientID%> tr th input").each(function (index) {
                //get selected object
                input = $(this);
            })
            $(input).show();            
       },function() {
            $(input).hide(); 

       });
    });
var输入; $(“#tr th a”).hover(函数(){ $(“#tr th input”)。每个(函数(索引){ //获取选定对象 输入=$(此项); }) $(输入).show(); },函数(){ $(输入).hide(); }); }); 缺少“;”在var声明之后