Public Sub InsertGCH()
'If Session("ModeType") = "Insert" Then
Dim strConnString As String = ConfigurationManager.ConnectionStrings("IrisConnectionString").ConnectionString
Dim con As New SqlConnection(strConnString)
Dim cmd As New SqlCommand()
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "Insert_REVIEWS_GCH"
'cmd.Parameters.Add("@TRAINEEID", SqlDbType.NVarChar).Value = Request("TRAINEEID")
'cmd.Parameters.Add("@POT", SqlDbType.Int).Value = Request("POT")
cmd.Parameters.Add("@QUALSCHEMEID", SqlDbType.Int).Value = ddlQUALSCHEMEID.SelectedValue.Trim()
cmd.Parameters.Add("@ReviewID", SqlDbType.Int).Value = Session("REVIEWS")
cmd.Parameters.Add("@GCH", SqlDbType.NVarChar).Value = txtGCH.Text.Trim()
cmd.Connection = con
con.Open()
cmd.ExecuteNonQuery()
con.Close()
con.Dispose()
End Sub
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
ASKER