Look at the following procedure.Step 1Create a Web Part using Visual Studio 2013.Step 2Open the ascx (MyFirstWebPartUserControl.ascx) and design your UI. Here I have created Employee details information.The following is the design part of the code:
The following is the JavaScript Code:
Step 3Build and deploy your the solution.Step 4Go to your SharePoint site and create one page under site pages. Add your web part to that page.Step 5Enter the Employee details and click the Save button.Step 6Go to your List and the item will display.SummaryThis article showed how programmatically add a list item to a SharePoint List using JavaScript.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: