forum

Home / DeveloperSection / Forums / ajax editor in ASP.NET

ajax editor in ASP.NET

Anonymous User144522-Aug-2014

I have an Ajax Editor in my page:

<cc1:Editor ID="Editor1" runat="server" width="600px"/>

What I want is to save the content from the Editor to my database.I tried this but it won't work:

SqlCommand cmd = new SqlCommand(

    "INSERT INTO titlu (descriere) Values(@descriere)",con);

cmd.Parameters.AddWithValue("@descriere", Editor1.Content);

I am using C# and it's a ASP.Net web application.. Why can't I save my data?


Updated on 22-Aug-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By