Hi Guys
I have the following function once the button is clicked
Protected Sub BtnCallBackRequest_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles BtnCallBackRequest.Click
Dim DBConnection As SqlConnection = New SqlConnection(GlobalParameters.DBConnection())
Dim SqlCommand As New SqlCommand("SP_WCallbackRequest", DBConnection)
With SqlCommand
.CommandType = CommandType.StoredProcedure
.Parameters.Add("@Callback_FirstName", SqlDbType.VarChar).Value = Request.Form("txtcustomerfirstname")
.Parameters.Add("@Callback_SurName", SqlDbType.VarChar).Value = Request.Form("txtcustomersurname")
.Parameters.Add("@Callback_CustomerTitle_Id", SqlDbType.Int).Value = SelCustomerTitles.SelectedValue
.Parameters.Add("@Callback_TelNo", SqlDbType.VarChar).Value = Request.Form("txtcustomertelno")
.Parameters.Add("@Callback_EMailAddress", SqlDbType.VarChar).Value = Request.Form("txtcustomeremailaddress")
.Parameters.Add("@DBErrMessage", SqlDbType.VarChar).Direction = ParameterDirection.ReturnValue
.Parameters.Add("@DBErrStatus", SqlDbType.VarChar).Direction = ParameterDirection.ReturnValue
End With
DBConnection.Close()
End Sub
Am I missing something to do the insert as it doesn't seem to work, but no error is returned
I have the following function once the button is clicked
Protected Sub BtnCallBackRequest_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles BtnCallBackRequest.Click
Dim DBConnection As SqlConnection = New SqlConnection(GlobalParameters.DBConnection())
Dim SqlCommand As New SqlCommand("SP_WCallbackRequest", DBConnection)
With SqlCommand
.CommandType = CommandType.StoredProcedure
.Parameters.Add("@Callback_FirstName", SqlDbType.VarChar).Value = Request.Form("txtcustomerfirstname")
.Parameters.Add("@Callback_SurName", SqlDbType.VarChar).Value = Request.Form("txtcustomersurname")
.Parameters.Add("@Callback_CustomerTitle_Id", SqlDbType.Int).Value = SelCustomerTitles.SelectedValue
.Parameters.Add("@Callback_TelNo", SqlDbType.VarChar).Value = Request.Form("txtcustomertelno")
.Parameters.Add("@Callback_EMailAddress", SqlDbType.VarChar).Value = Request.Form("txtcustomeremailaddress")
.Parameters.Add("@DBErrMessage", SqlDbType.VarChar).Direction = ParameterDirection.ReturnValue
.Parameters.Add("@DBErrStatus", SqlDbType.VarChar).Direction = ParameterDirection.ReturnValue
End With
DBConnection.Close()
End Sub
Am I missing something to do the insert as it doesn't seem to work, but no error is returned