Skip to content

How to update gridview radiobutton data into into database

Lucas Ngobeni

Asked Mar 17, 2016, 11:06 PM EDT1 answer
Share
LinkedInX
Hi guys 
 
I have four columns in my gridview  1. Radio Button 2. name .3 Surname 4. Amount and also submit button. on my database Radio button is int, nvarchar,nvarchar, float. Radio Button is default to Zero
 
If I checked  radio button and click submit button it must update int from 0 to 1 or -1. in short how to update radio button from 0 to 1  into database i'm using Sql Server 
 
N:B this is web application
 
Thanks in advance  

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Naveenkumar Tholkappian
    0
    Code
    if(Radiobutton1.checked=true)
    {
     dbvalue=1;
    }
    else
    {
    dbvalue=0
    }
    0