title: Convert String into integer in asp.net
body: <p>I have a gridview in which I insert a checkbox on <code>check_changed</code> even I write the following codes to get the value of Issue Id as mentioned in image also showing values in textbox, but when I use these string in SQL:</p>
  
  <pre><code>Select * from IssueBook Where IssueId IN (values)
  </code></pre>
  
  <p>It shows error converting varchar to numeric on <code>check_changed</code> I write these codes I have take IssueId (numeric)</p>
  
  <pre><code>Protected Sub CheckBox1_CheckedChanged1(ByVal sender As Object, ByVal e As System.EventArgs)
          Dim x As String = ""
          For Each row As GridViewRow In GridView1.Rows
              Dim cb As CheckBox = row.FindControl("checkbox1")
              If cb IsNot Nothing AndAlso cb.Checked Then
                  If x &lt;&gt; "" Then
                      x += ","
                  End If
                  x += row.Cells(1).Text
              End If
          Next
          RwId.Text = x
          Session("SelctdIsuedBokNo") = RwId.Text
  </code></pre>
  
  <p>In data table I used numeric value. 
  How can I convert above codes into integers such as <code>4,5,6,</code> with comma separator?</p>