title: How to get the value from request.querystring in vb.net
body: <p>I am using VB.NET</p>
  
  <p>My problem is that, I have got below request.querystring</p>
  
  <pre><code>http://localhost/ISS/Training/TrainingUpdate.aspx?cpuserid='50'&amp;%20courseid='6'&amp;%20status='accept'
  </code></pre>
  
  <p>Now I want to pass all the above three querystring in a sql stored procedure parameter.</p>
  
  <p>for example,</p>
  
  <pre><code>Try
                  Dim conString As String = WebConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString
                  Dim con As New SqlConnection(conString)
                  con.Open()
                  Dim cmd As SqlCommand
                  cmd = New SqlCommand("uspUpdateDelegateAcceptDeclineStatus", con)
                  cmd.CommandType = CommandType.StoredProcedure
                  cmd.Parameters.Add("@CPUserID", SqlDbType.Int).Value = Request.QueryString("cpuserid")
                  cmd.Parameters.Add("@CourseID", SqlDbType.Int).Value = Request.QueryString("courseid")
                  cmd.Parameters.Add("@StatusName", SqlDbType.Int).Value = Request.QueryString("status")
                  cmd.ExecuteNonQuery()
              Catch ex As Exception
                  ErrorHandler.WriteError(ex.Message)
              End Try
  </code></pre>
  
  <p>But I am able to get the request querystring value in my parameter.</p>
  
  <p>Please suggest.</p>
  
  <p>Thanks.</p>
  
  <p>Best Regards,
  Yuv</p>