database insert problem

Jun 8, 2010 at 9:42 AM
i want to insert data from richtext editor to database. but all column is insert .but richtext editor is null. data type of richtexteditor column- nvarchar(max). id of richtexteditor is rte1 . here is my code- protected void btnsubmit_Click(object sender, EventArgs e) { using (DataClassesDataContext context = new DataClassesDataContext()) { obimot customer = new obimot { Subject = TextBox1.Text, pname = TextBox2.Text, mobileno = TextBox3.Text, pprofession = TextBox4.Text, Description =Rte1.Text, }; context.obimots.InsertOnSubmit(customer); context.SubmitChanges(); } please help me. i am in big trouble.
Jun 9, 2010 at 7:30 PM

There is a javascript function built into the grid that may solve your issue.

On your command button, call the JavaScript function CopyText() on the client side before postback.


Medmerd