<input type="button" value="Submit" onclick="createListItem();" style="width: 89px" />
<input type="button" value="Update" onclick="updateListItem();" style="width: 89px" />
<input type="button" value="Delete" onclick="deleteListItem();" style="width: 89px" />
<script type="text/javascript">
var siteUrl = '/sites/TeamSite1';
function createListItem() {
...
Wednesday, 4 December 2013
Insert,update,delete in sharepoint list using Javascript
Continue Reading...
Labels:
Javascript,
SharePoint
Delete all SharePoint List Item using Powershell in SharePoint
Sytax:-
$SITEURL = "http://serverurl"
$site = new-object Microsoft.SharePoint.SPSite ( $SITEURL )
$web = $site.OpenWeb()
"Web is : " + $web.Title
$oList = $web.Lists["LIST NAME"];
"List is :" + $oList.Title + " with item count " + $oList.ItemCount
$collListItems = $oList.Items;
$count = $collListItems.Count - 1
for($intIndex = $count; $intIndex -gt -1; $intIndex--)
{
"Deleting record: " + $intIndex
...
Labels:
Powershell,
SharePoint,
sharePoint 2010,
SharePoint 2013
Tuesday, 3 December 2013
join two sharepoint list using c#

1.Create a custom list name as "List1" with below column
2.Create a custom list name as "List2" with below column
3.paste the below code inside the webpart
public void GetEmployee()
{
SPWeb objweb = SPContext.Current.Web;
...
Labels:
C#,
CustomList,
Linq,
sharePoint 2010,
SharePoint 2013
Timer Job Example in SharePoint 2013

1.open visual studio 2012
2.Add SharePoint2013-Empty Project named it "TimerJobExample"
3.Enter your site collection and choose Deploy as a Farm solution
4.Add class file in your solution named it "Employee"
5.paste the below code inside the Employee class
public class Employee : SPJobDefinition
{
...
Labels:
C#,
sharePoint 2010,
SharePoint 2013,
Timer Jobs
Create sharepoint list custom form via visual studio 2012

1.open visual studio 2012
2.Add Sharepoint 2013 Empty project Named it "Employee"
3.Create a custom list name as "Employee" and add the below columns
4.Right click the project add the layouts folder inside that add one Application page named it "EmpCustomForm"
5.Paste the below code inside the Content ID "Main"
...
Labels:
C#,
Custom Form,
CustomList,
SharePoint 2013,
visual Studio 2012
Subscribe to:
Posts (Atom)
Followers
Follow The Author
Designed By Templateism | Seo Blogger Templates