How to solve System.FormatException: Index (zero based) must be greater than or equal to zero



above is my code .Why i am getting Exception(System.FormatException:) .Please any one suggest?

Answers

  • SwagatikaSwagatika Member ✭✭

    I got the solution.

  • ShantimohanElchuriShantimohanElchuri USMember ✭✭✭✭✭

    @Swagatika said:
    I got the solution.

    It will be helpful if you post how solved it...

  • ColeXColeX Member, Xamarin Team Xamurai

    @Swagatika Could you post the solution ?

  • SwagatikaSwagatika Member ✭✭

    Actually Id was needed my url. But i forgot to put id.tostring in the GetStation Method.
    [ string url = string.Format(Constants.Userdata_URL,id.ToString());]

  • ShantimohanElchuriShantimohanElchuri USMember ✭✭✭✭✭

    @Swagatika said:
    Actually Id was needed my url. But i forgot to put id.tostring in the GetStation Method.
    [ string url = string.Format(Constants.Userdata_URL,id.ToString());]

    Mark your reply as an answer.

Sign In or Register to comment.