Following is the code for insert
into database
. Using ckeditor
, can any changes be done in web.config
to insert
data ?
[HttpPost]
[ValidateInput(false)]
public ActionResult Create(Content cnt)
{
var dbContext = new MyDbDataContext();
Table4 tb = new Table4();
tb.Id = cnt.id;
tb.Title = cnt.title;
tb.Ptitle = cnt.page_title;
tb.Url = cnt.url;
tb.Description = cnt.description;
dbContext.Table4s.InsertOnSubmit(tb);
dbContext.SubmitChanges();
return View();
}
and all that on browser.