Net中的嵌套GridView中获取RadioButton

Net中的嵌套GridView中获取RadioButton

本文介绍了如何在ASP.Net中的嵌套GridView中获取RadioButton Checked属性为True.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在ASP.Net的嵌套GridView中获取RadioButton Checked属性为True.

(当前,选择RadioButton之后,我将Checked属性值设置为FALSE).

我想获取Selected RadioButtons的TRUE值.

How can i get RadioButton Checked property is True in a Nested GridView in ASP.Net.

(Presently, After selecting RadioButton, i get Checked property value as FALSE).

I want to get Selected RadioButtons TRUE value.

推荐答案

Dim grd As GridView = CType(Gridview1.Rows(0).FindControl("GridViewname"), GridView)


        For Each dr As DataGridItem In grd.Rows
            Dim rd As RadioButton = CType(dr.FindControl("Radiobuttonname"), RadioButton)

            ''''rd.Checked use this this method


        Next



希望这会有所帮助:)



Hope this will help :)


这篇关于如何在ASP.Net中的嵌套GridView中获取RadioButton Checked属性为True.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 22:12