Skip to content
Loading
  • +2

    The same error coming sir, I am trying to insert values from textbox checkbox and radio button,

    +2
  • Dinesh Gabhane
    +2

    Try using SelectedValue not Text

    +2
  • Sachin Singh
    +2
    Close and Reopen Visual Studio, and instead of ctrl+f5 use the run button then debugger will hit.
    +2
  • +2
    Sir,
     
    Debugging is not working in my laptop if i click breakpoint and press fn + f10 button and inserting record means it shows record inserted successfully but debugging is not happening i closed my VS 22 and tried again but still same problem,
    +2
  • Sachin Singh
    +2
    In the menu bar--->Go to Debug---> select Delete all break points option
    Clean solution and Rebuild.
    Then again put break points where you want to debug and run the code. 
    +2
  • +2
    I tried the method you said last but still it was not debugging sir, i tried with this simple code reset button it was clearing data in textbox but not showing the debugging sir
     
    private void button10_Click(object sender, EventArgs e)
    {
    textBox1.Text = string.Empty;
    textBox2.Text = "";
    textBox3.Text = "";
    textBox4.Text = "";
    textBox5.Text = "";
    textBox6.Text = "";
    textBox7.Text = "";
    textBox8.Text = "";
    }
     
    +2
  • +2
    Sir, in this code, if i click bad radio button2 and untaste checkbox2 means data inserting only radio button1 and untaste checkbox1 that is good and tasty itself inserting in database sir
    +2
  • Sachin Singh
    +2
    If CheckBox1.Text will be null then it will take CheckBox2.Text else TextBox1.Text.
    what do you want to take?
    +2
  • +2

    yes sir, if i click radionbutton1 means it should data insert and radionbutton 2 data is null, like wise checkbox also should work

    +2
  • Uttam Kumar
    +2
    I think the issue is in the UI.. Also try grouping it instead of using separate Radiobutton and Checkbox.
    +2