This is a migrated thread and some comments may be shown as answers.

[Solved] Rad Editor code not working

1 Answer 101 Views
Editor
This is a migrated thread and some comments may be shown as answers.
isidro
Top achievements
Rank 1
isidro asked on 31 Mar 2009, 04:22 PM
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

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

 

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 03 Apr 2009, 11:07 AM
Hi Isidro,

Your code seems to be correct and it should work when you save RadEditor.Content similar to TextBox.Text in such scenario. You can also see this scenario working in the following online demo:

http://demos.telerik.com/aspnet-ajax/editor/examples/saveindatabase/defaultcs.aspx

What I can suggest is to debug your application and see what might have gone wrong. It will be also helpful to provide detailed explanation what is not working, do you get an error or what exactly is wrong. It will be best if you open a new support ticket and send us a sample, fully runnable reproduction demo along with detailed reproduction instructions (you can use the Northwind database or a fake programmatic datasource) and explanations.

Kind regards,
Svetlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
isidro
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or