locked
Invalid Arguments RRS feed

  • Question

  • User275941 posted

    I'm new to Xamarin Plz Kindly tell what is this issue and How to Solve this

    Monday, May 22, 2017 10:17 AM

Answers

  • User320634 posted

    hi @sumarkhan ErrorList window is clearly telling "Argumen 1:Cannot convert from 'string' to 'int' " by default text propert is string so replace your code ws.InsertAsync(id.Text,name.Text) to

    ws.InsertAsync(Convert.ToInt32(id.Text),name.Text) and don't forget to add line Using System; at the top

    Hope this can help you...

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, May 22, 2017 10:50 AM

All replies

  • User320634 posted

    hi @sumarkhan ErrorList window is clearly telling "Argumen 1:Cannot convert from 'string' to 'int' " by default text propert is string so replace your code ws.InsertAsync(id.Text,name.Text) to

    ws.InsertAsync(Convert.ToInt32(id.Text),name.Text) and don't forget to add line Using System; at the top

    Hope this can help you...

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, May 22, 2017 10:50 AM
  • User275941 posted

    Heay varun could u tell me whats the problem is that when at first run i insert data it successfully inserted when at second recond it give error that input string is not in correct format ...So what is this issue now??

    Tuesday, May 23, 2017 10:13 AM
  • User320634 posted

    hi @sumarkhan sorry that i do not precisely know what it does ,syntactically what was blocking you is what i described

    Tuesday, May 23, 2017 1:13 PM