Skip to content
Loading
unreachable code detected
For more you can refer this link, https://stackoverflow.com/questions/27067374/unreachable-code-detected-in-the-for-loop .
If it helps Mark as Answer.
Thanks.
  • Amit Gupta
    Avoid using string contcatinated query, consider using parameterized query that gives you much cleaner code and easy to maintain and it also avoids Sql Injection
  • for (int i = 0; i < ds.Tables.Count; i++)
     in this 
    i++ code  unreachable error shows
  • Salman Beg
    Hi. In which line you got the error. Please put try catch block and put debugger in VS and check. Thanks.