Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.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# 如何获取gridview选定列_C#_Asp.net - Fatal编程技术网

C# 如何获取gridview选定列

C# 如何获取gridview选定列,c#,asp.net,C#,Asp.net,在asp.net C#vs05.window平台上工作时,我可以在标记属性上保存值。如何在web上使用此属性?通过使用标记属性,我可以轻松获得所选行。代码snipt class name object = (className)listviewName.SelectedItems[0].Tag; 我想在对象中获取我的gridview选定行值,如上图所示。如何获取 // Get the selected row from the GridView control.//

在asp.net C#vs05.window平台上工作时,我可以在标记属性上保存值。如何在web上使用此属性?通过使用标记属性,我可以轻松获得所选行。代码snipt

class name object = (className)listviewName.SelectedItems[0].Tag;
我想在对象中获取我的gridview选定行值,如上图所示。如何获取

     // Get the selected row from the GridView control.//

        GridViewRow selectRow = AuthorsGridView.SelectedRow

      //If the first column is, for example, LastName ...//

        String lastName = selectRow.Cells[1].Text;

现在还不清楚您的意思是否是asp.net,这是一个错误吗?