Here's how I would recommend you do it:
var requestGuid = Request.Params["GUID"];
if (string.IsNullOrEmpty(requestGuid))
{
throw new InvalidOperationException("The request GUID is missing from the URL");
}
Guid guid;
if (!Guid.TryParse(requestGuid, out guid))
{
throw new InvalidOperationException("The request GUID in the URL is not correctly formatted");
}
using(var connection = new SqlConnection("connection_string"))
{
using(var command = new SqlCommand("spSurveyAnswer_Insert", connection))
{
command.CommandType = CommandType.StoredProcedure;
command.Parameters.AddWithValue("firstParamName", selectValue1);
command.Parameters.AddWithValue("feedbackParamName", txtFeedBack.Text);
command.Parameters.AddWithValue("guidParamName", guid);
command.Connection.Open();
command.ExecuteNonQuery();
}
}
You can't guarantee that the GUID will be in the URL OR be a valid GUID so be defensive and check for both! Then use parameterised queries to help prevent SQL injection - since you are calling a stored procedure, you can still have sql injection if you misuse the parameter values inside the proc so you need to write that carefully too. Finally, also dispose of disposable resources properly.