Hi i having a querystring where i get an id.
Then I select the ID from my db and are ready to use the value, but hov do I insert the value into CKEditor !?
Have used google for 2 days now, and i cant find any usefull solution, and the installe guide is not showing an usefull solution.
And then its now true, there is solutions but its when i write a new text, here i want to get an old text from my db to my ckeditor so I can edit it and then save it again in my db.
Code_behind
Main_code
Then I select the ID from my db and are ready to use the value, but hov do I insert the value into CKEditor !?
Have used google for 2 days now, and i cant find any usefull solution, and the installe guide is not showing an usefull solution.
And then its now true, there is solutions but its when i write a new text, here i want to get an old text from my db to my ckeditor so I can edit it and then save it again in my db.
Code_behind
Protected Sub Page_Load(sender As Object, e As EventArgs) If Request.QueryString("editid") Is Nothing Then Else Dim textid = Request.QueryString("editid") Dim strSQL As String = "" strSQL = "" & _ "SELECT * " & _ "FROM shop_histo " & _ "WHERE (shophis_id = '" & textid & "');" Using connection As OleDbConnection = New OleDbConnection(ConfigurationManager.ConnectionStrings("ConnStr").ConnectionString) Using command As OleDbCommand = New OleDbCommand(strSQL, connection) Try command.Connection.Open() Using reader As OleDbDataReader = command.ExecuteReader(CommandBehavior.CloseConnection) If reader.HasRows Then Dim text_title = reader("shophis_title") Dim text_note = reader("shophis_text") End If reader.Close() End Using Catch exc As Exception Finally command.Connection.Close() End Try End Using End Using End If End Sub
Main_code
<p> <label>Hovede Title:</label><br /> <asp:TextBox ID="TextBox1" CssClass="cssclasstextbox" runat="server" /> </p> <p> <label>Textarea label:</label><br /> <CKEditor:CKEditorControl ID="CKEditor1" runat="server" Language="da" EnterMode="BR" Value="test" Toolbar="Source Bold|Italic|Underline|Strike|-|Subscript|Superscript NumberedList|BulletedList|-|Outdent|Indent / TextColor|BGColor|Link|Table"> </CKEditor:CKEditorControl> </p>
Re: how do i insert value to CKEditor Asp.net
Re: how do i insert value to CKEditor Asp.net
Anyone care to share the solution? I had been lurking around to find the answer.

Hope someone can help.
Regards
Daniel