Insert data to databse in mvc

Last post 07-01-2013, 12:29 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  06-27-2013, 9:19 AM 77612

    Insert data to databse in mvc

    Pls,

    I need to use richtexteditor to store and retrive data from databse insed the view of asp.net mvc.

    How can I do this? 

  •  06-27-2013, 12:43 PM 77615 in reply to 77612

    Re: Insert data to databse in mvc

    Hi Fahman,

     

    Please refer to http://richtexteditor.com/document/scr/html/editor-methods.htm, you can use API GetText() and SetText() to get/set the content for editor in the view page.

     

    Regards,

     

    Ken 

  •  07-01-2013, 4:11 AM 77630 in reply to 77615

    Re: Insert data to databse in mvc

    OK, Thanks.

    Can I replace the textarea with richtextbox

     <%: Html.TextAreaFor(model => model.Title, new { @id = "txt_words"})%>  
     <%: Html.ValidationMessageFor(model => model.Title) %>
     like <%: Html.richtexteditorFor(model => model.Title)

    Pls, now I transfere richtext data in a textarea and then store it in database how I store and retrive it directly to richtexteditor.

  •  07-01-2013, 12:29 PM 77636 in reply to 77630

    Re: Insert data to databse in mvc

    Hi Fahman,

     

    Please check the link I sent, it shows you how get and set the content of editor. If you get problem with these API, please show me the details.

     

    Regards,

     

    Ken 

     

View as RSS news feed in XML