Click here to Skip to main content
15,899,126 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Adding dll in web application which is developing on MVC Framework Pin
Jasmine25012-Apr-13 18:41
Jasmine25012-Apr-13 18:41 
GeneralRe: Adding dll in web application which is developing on MVC Framework Pin
Shree.grace2-Apr-13 19:02
Shree.grace2-Apr-13 19:02 
GeneralRe: Adding dll in web application which is developing on MVC Framework Pin
Jasmine25013-Apr-13 5:47
Jasmine25013-Apr-13 5:47 
GeneralRe: Adding dll in web application which is developing on MVC Framework Pin
Shree.grace3-Apr-13 18:23
Shree.grace3-Apr-13 18:23 
GeneralRe: Adding dll in web application which is developing on MVC Framework Pin
Jasmine25014-Apr-13 6:39
Jasmine25014-Apr-13 6:39 
QuestionJQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
Jasmine25011-Apr-13 11:06
Jasmine25011-Apr-13 11:06 
AnswerMessage Closed Pin
2-Apr-13 7:14
professionaljkirkerx2-Apr-13 7:14 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
Jasmine25012-Apr-13 11:16
Jasmine25012-Apr-13 11:16 
Thanks! I did get it figured out. Something to do with the ParameterMap function. I added a basic stringify into that, and now it sends back the proper JSON in the POST request.

However, now I'm getting some kind of type conversion problem. The incoming object IS being parsed correctly into a Person object, but then the framework is trying to convert it into a Dictionary object, which fails and throws an exception and a 500 back to the browser. I have no additional information than that, so it's a pretty big mystery at the moment.

I think this question is maybe too advanced for this forum. I know there's smart people here like you and me, and I thought this question was interesting enough to attract those folks, but I'm stumped so maybe everybody else is too? If you looked at this question and tried to solve it, please let me know what you found! We might work it out together.

This is the Javascript right now - this sends the proper JSON back to the server (and the server even deserializes it correctly to a Person object, then it chokes trying to do something unnecessary).

C#
$(document).ready(function () {
    $("#PeopleGrid").kendoGrid({
        columns: ["LastName", "FirstName", "Phone"],
        dataSource: {
            transport: {
                read: {
                    type: "POST",
                    url: "TestKendoGrid.aspx/Read",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json"
                },
                create: {
                    type: "POST",
                    url: "TestKendoGrid.aspx/Create",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json"
                },
                update: {
                    type: "POST",
                    url: "TestKendoGrid.aspx/Update",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json"
                },
                parameterMap: function (data, type) {
                    return kendo.stringify(data);
                }
            },
            schema: {
                data: "d",
                columns: ["ID", "LastName", "FirstName", "Phone"],
                model: {
                    id: "ID",
                    fields: {
                        LastName: {
                            editable: true,
                            nullable: false
                        },
                        FirstName: {
                            editable: true,
                            nullable: false
                        },
                        Phone: {
                            editable: true,
                            nullable: false
                        }
                    }
                }
            },
            batch: false
        },
        editable: {
            update: true,
            create: true,
            destroy: false
        },
        toolbar: ["create", "save", "cancel"]
    })
});

GeneralMessage Closed Pin
2-Apr-13 11:24
professionaljkirkerx2-Apr-13 11:24 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
Jasmine25012-Apr-13 12:35
Jasmine25012-Apr-13 12:35 
AnswerMessage Closed Pin
2-Apr-13 11:36
professionaljkirkerx2-Apr-13 11:36 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
Jasmine25012-Apr-13 12:59
Jasmine25012-Apr-13 12:59 
AnswerRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
jkirkerx2-Apr-13 16:44
professionaljkirkerx2-Apr-13 16:44 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
Jasmine25012-Apr-13 18:34
Jasmine25012-Apr-13 18:34 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
jkirkerx3-Apr-13 6:56
professionaljkirkerx3-Apr-13 6:56 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
Jasmine25013-Apr-13 9:40
Jasmine25013-Apr-13 9:40 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
jkirkerx3-Apr-13 10:39
professionaljkirkerx3-Apr-13 10:39 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
Jasmine25013-Apr-13 13:05
Jasmine25013-Apr-13 13:05 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
jkirkerx3-Apr-13 16:03
professionaljkirkerx3-Apr-13 16:03 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
Jasmine25013-Apr-13 18:12
Jasmine25013-Apr-13 18:12 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
jkirkerx3-Apr-13 18:38
professionaljkirkerx3-Apr-13 18:38 
GeneralRe: JQuery/JSON/ASP.Net/AJAX/Entity Framework trouble Pin
Jasmine25014-Apr-13 6:44
Jasmine25014-Apr-13 6:44 
QuestionSocial Share Component Pin
Jassim Rahma1-Apr-13 5:43
Jassim Rahma1-Apr-13 5:43 
AnswerRe: Social Share Component Pin
Sandeep Mewara1-Apr-13 6:18
mveSandeep Mewara1-Apr-13 6:18 
GeneralRe: Social Share Component Pin
AspDotNetDev1-Apr-13 6:41
protectorAspDotNetDev1-Apr-13 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.