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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

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

Octavio RodriguesPosted Aug 4, 2022, 2:41 PM
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.
Vishal YelvePosted Aug 4, 2022, 5:39 AM