Re: posting radiobuttons inside a gridview do not persist selection after postback..
- From: "Carlos" <ch_sanin@xxxxxxxxx>
- Date: Wed, 15 Nov 2006 11:12:17 -0500
Thanks, for the reply. However, I already have the enableviewstate set to
true,
and the problem is that in this snippet, the control variable comes null.
i.e. apparently it can not find the control:
for (int i = 0; i < GridView2.Rows.Count; i++)
{
GridViewRow row = GridView11.Rows[i];
HtmlInputRadioButton rb =
(HtmlInputRadioButton)(row.FindControl("rbMonday"));
if (rb.Checked == true)
{
Response.Write("found it..");
// Column 2 is the name column
}
}
Thanks,
Carlos.
"kferron" <kevin.ferron@xxxxxxxxx> wrote in message
news:1163578823.892887.122110@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
enable viewstate on the radiobutton control in the template field?
Carlos wrote:
Hi all,
I have a form with an input radio control in a template field.
When the user selects an option, and press a button
the selection disappears.. I would like the selection to
persist after the button makes the postback,
I tried using the findcontrol but it returns null, and do not know how
to make sure that the radio selected persist after the button
action makes the postback.
Thanks in advance,
Carlos.
.
- Follow-Ups:
- References:
- Prev by Date: OT: Google listing w/ category hierarchy
- Next by Date: Re: How do I preview a posted file?
- Previous by thread: Re: posting radiobuttons inside a gridview do not persist selection after postback..
- Next by thread: Re: posting radiobuttons inside a gridview do not persist selection after postback..
- Index(es):