Click here to Skip to main content
15,664,619 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Am using this code for Inserting Data..
I need to pass dat as object array.. How can I write code for this??????

var  dat = "{FeeNameId:'"+FeeNameId+"',FeeName:'" + FeeName + "',FeeType:'"+FeeType+"'}";
   var  url="../Services/FeesService.asmx/InsertFeeName"
        type: "POST",
        url: url,
        data: dat,
        dataType: "json",
        success: function (xml) {
            if (xml.d != null) {
                if (xml.d.SaveStat == true) {
        contentType: "application/json; charset=utf-8",
        failure: function (data) {
            Message('XML File could not be found');

        error: function (XMLHttpRequest, textStatus, errorThrown) {


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900