question

Tav-3581 avatar image
0 Votes"
Tav-3581 asked LanHuang-MSFT commented

gridview pass Radio Button selected Value to a parameter

I'm trying to pass the selected radio button Value to a parameter on gridview UpdateCommand. Any help would be greatly appreciated.

UpdateCommand="update form set IsPatWorking = @IsPatWorking, bodypartpercentageloss = @bodypartpercentageloss where claimid =@claimid


<asp:TemplateField HeaderText="Is Patient Working ? Yes or No">

<ItemTemplate>


<asp:RadioButtonList ID="RadioButtonList1" runat="server">
<asp:ListItem Text="No" Value="False"></asp:ListItem>
<asp:ListItem Text="Yes" Value="True"></asp:ListItem>
</asp:RadioButtonList>
</ItemTemplate>
<ControlStyle Width="60px" />
<ItemStyle Width="60px" />
</asp:TemplateField>

c++dotnet-aspnet-general
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Tav-3581,
Your project is asp.net webform? Your backend language uses c++?
Best regards,
Lan Huang

0 Votes 0 ·
Tav-3581 avatar image Tav-3581 LanHuang-MSFT ·

Your project is asp.net webform? Yes

Your backend language uses c++?Yes

0 Votes 0 ·

Hi @Tav-3581,
ASP.NET pages have the extension .aspx and are usually written in C# or VB.
In c# you can use FindControl to get RadioButton control.
Can you be specific about how you work? Provide a complete example.

Best regards,
Lan Huang


0 Votes 0 ·

0 Answers