Users Pricing

forum

Home Forums ajax editor in ASP.NET – MindStick

ajax editor in ASP.NET

Anonymous User 1919 22 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?


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md