title: vb.net sending value from one aspx to another
body: <p>this is my vb.net code -</p>
  
  <p>in the subroutine i have -</p>
  
  <pre><code>Private Sub xxx()
  
  Sqlstr = "SELECT * FROM table"
              ExecuteNonQuery(Sqlstr)
  SqlCmd = New SqlCommand(Sqlstr, SqlCnn)
              SqlDR = SqlCmd.ExecuteReader
              If SqlDR.HasRows Then
                  Do While SqlDR.Read()
                      r = New TableRow
  
                      Dim l As New LinkButton
                      l.Text = SqlDR("column_name")
                      l.Attributes.Add("onClick", "setAction(" + CStr(SqlDR("id")) + ",'edit')")
                      l.ID = SqlDR("id")
  
                      c = New TableCell
                      c.Controls.Add(l)
                      r.Cells.Add(c)
  ....
  </code></pre>
  
  <p>so when the person clicks on the hyperlink that i have provided here, i goto page_load and do this </p>
  
  <pre><code>If (Me.pageAction.Value = "edit") Then
                 Response.Redirect("next.aspx?id=" ???? - i dont know what to put here.
              End If
  </code></pre>
  
  <p>i want the next.aspx page to have the value of edit that was clicked on (so the ID value)</p>
  
  <p>Am i doing this whole thing right or does someone have a better solution, simpler and cleaner one?</p>