Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

without using c# how to insert list items programatically?

$
0
0

i want to perform the following operation

insert,update,delete list items using csom.

i am new to csom and i try to insert the list items used some javascript.

       

function Insert_Click() {
        var name = $("#<%=txtname.ClientID%>").val();
        var gender = $("#<%=ddlgender.ClientID%>").val();
        var email = $("#<%=txtEmail.ClientID%>").val();   
        var city =  $("#<%=txtcity.ClientID%>").val();

        $().SPServices({

            webURL: "http://trig-o-1117:7272/sites/SPAppSite1/",
            operation: "UpdateListItems",
            async: false,
            batchCmd: "New",
            listName: "Details",
            valuepairs: [["Name", name]],
            completefunc: function (xData, Status) {


            }
        });
    }
 </script>

<td colspan="2" class="auto-style1"><asp:Button ID="btninsert" runat="server" Text="Submit" OnClientClick="return Insert_Click();"/></td>

this method is not working,please suggest some other methods.


Viewing all articles
Browse latest Browse all 11571

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>