Hi guys,
is the first time I used Telerik products,
but the code does not work with radeditor, but with a textbox, I am trying to update records in my database
is the first time I used Telerik products,
but the code does not work with radeditor, but with a textbox, I am trying to update records in my database
Dim
oConn As SqlConnection
Dim oCmd As SqlCommand
oConn =
New SqlConnection(ConfigurationManager.ConnectionStrings("pamm").ConnectionString)
oCmd =
New SqlCommand("UpdateEmpresa", oConn)
oCmd.CommandType = CommandType.StoredProcedure
oCmd.Parameters.AddWithValue(
"@ID", SqlDbType.Int).Value = id.Text
oCmd.Parameters.AddWithValue(
"@Empresa", RadNews.Content)
Try
oCmd.Connection.Open()
oCmd.ExecuteNonQuery()
Catch ex As Exception
ex.Message.ToString()
Finally
oCmd.Connection.Close()
Response.Redirect(
"empresa.aspx")
End Try