Greetings,
I have been trying to follow the steps of this demo to save the content of my Editor in my database.
http://demos.telerik.com/aspnet-ajax/editor/examples/saveindatabase/defaultcs.aspx
But it is not working unfortunately
PS: the RadEditor control is within a RadWindow and i pass an ID from a RadGrid to the window, that's why i have a
To get back the ID.
The Command i try to do is the update.
Thanks in advance for your help
I have been trying to follow the steps of this demo to save the content of my Editor in my database.
http://demos.telerik.com/aspnet-ajax/editor/examples/saveindatabase/defaultcs.aspx
But it is not working unfortunately
<form id="form1" runat="server"><div><input type="hidden" name="EditedNews" runat="server" id="EditedNews" /> <telerik:RadEditor ID="NewsEditor" runat="server"> </telerik:RadEditor></div><telerik:RadScriptManager ID="RadScriptManager1" Runat="server"></telerik:RadScriptManager><asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /><asp:SqlDataSource ID="SqlDataSourceRadEditor" runat="server" ConflictDetection="OverwriteChanges" ConnectionString="<%$ ConnectionStrings:IntranetConnectionString %>" DeleteCommand="DELETE FROM [rendezvous] WHERE [idRDV] = @idRDV" InsertCommand="INSERT INTO [rendezvous] ([rapport]) VALUES (@rapport) WHERE idRDV = @idRDV " SelectCommand="SELECT [idRDV], [rapport] FROM [rendezvous]" UpdateCommand="UPDATE [rendezvous] SET [rapport] = @rapport WHERE [idRDV] = @idRDV"> <DeleteParameters> <asp:Parameter Name="idRDV" Type="Int32" /> <asp:Parameter Name="rapport" Type="String" /> </DeleteParameters> <InsertParameters> <asp:Parameter Name="rapport" Type="String" /> </InsertParameters> <UpdateParameters> <asp:QueryStringParameter Name="idRDV" QueryStringField="idRDV" Type="Int32" /> <asp:Parameter Name="rapport" Type="String" /> </UpdateParameters></asp:SqlDataSource></form>protected void Button1_Click(object sender, EventArgs e){ if (EditedNews.Value == string.Empty) { SqlDataSourceRadEditor.UpdateParameters.Add("NewsText", NewsEditor.Content); SqlDataSourceRadEditor.Update(); } }PS: the RadEditor control is within a RadWindow and i pass an ID from a RadGrid to the window, that's why i have a
<asp:QueryStringParameter Name="idRDV" QueryStringField="idRDV" Type="Int32" />To get back the ID.
The Command i try to do is the update.
Thanks in advance for your help
