在后台中如何判断gridview是否被选中。
string s = this.GridView1.SelectedDataKey.Value.ToString();
会报错:System.NullReferenceException: 未将对象引用设置到对象的实例。有没有在后台中判断的方法,不使用js。谢谢