I need some help How do I pass the selected radio button value to a parameter? I'm new to asp.net and C#. Any help or examples would be greatly appreciated.
I need some help How do I pass the selected radio button value to a parameter? I'm new to asp.net and C#. Any help or examples would be greatly appreciated.
Know the answer? Post it. Somebody with the same question will find it here.
I'm getting an error Object cannot be cast from dbnull. All the Values for "is patient working" field in my database are Nulls. I want to use the radio buttons to update the NuLLs to No = 0 or Yes =1. Thank you Amit and Vishai for your posts extremely helpful.

Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Aug 3, 2022, 1:37 PM EDT
Octavio Rodrigues21 reputationPosted Aug 3, 2022, 2:07 PM EDT
No, I want the radio button selected value passed to a parameter. so when the update command is executed it will update my record.
UpdateCommand="update form set IsPatWorking = @IsPatWorking, bodypartpercentageloss = @bodypartpercentageloss
where claimid =@claimid ">
***** Parameter Highlighted
Amit MohantyRank #112 · 20K reputationPosted Aug 4, 2022, 12:56 AM EDT
Vishal YelveRank #178 · 13.6K reputationPosted Aug 4, 2022, 1:39 AM EDT