Hpw在kendo ui编辑器控件中传递数据 [英] Hpw to pass data in kendo ui editor control
本文介绍了Hpw在kendo ui编辑器控件中传递数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我正在使用kendo ui编辑器控件。
我想在数据库中保存编辑器控件数据。 />
i我传递的数据如下。
hello,
I am using kendo ui editor controll.
I want to save editor control data in the database.
i am passing data follwing way.
$(function () {
$("#btnSave").on("click", function (e) {
$.ajax({
type: "Post",
url: '/Home/Add',
data: $("#editorControl").data("kendoEditor"),
datatype: 'json',
success: function (data) {
location.href = '/Home/Index';
},
error: function (e) {
console.log(e);
}
});
});
});
但是我在控制器中获得了空模型。
可以任意一个人帮我这个
问候,
Viprat
but i am getting the null model in controller.
Can any one help me on this
Regards,
Viprat
推荐答案
( function(){
(function () {
( #btnSave)。 on( click,function(e){
("#btnSave").on("click", function (e) {
.ajax({
类型: 发布,
url:' / Home / Add',
data:
.ajax({ type: "Post", url: '/Home/Add', data:
这篇关于Hpw在kendo ui编辑器控件中传递数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文