Asp Net SharePoint Tutorial Step By Step

First things first, you need to have Visual Studio 2017 or later installed on your machine. This is because ASP.NET SharePoint tutorials are primarily designed for developers who use Microsoft’s development tool to build and deploy their projects.

Step 1: Create a new project in Visual Studio
Open Visual Studio and click on the “File” menu, then select “New” > “Project…” In the “New Project” dialog box, expand the “.NET Core” section under the “Visual C#” node, then choose “ASP.NET Web Application (.NET Core)” and name your project something like “SharePointTutorial”.

Step 2: Create a new SharePoint site
Next, you’ll need to create a new SharePoint site. You can do this by going to the SharePoint Online admin center (or SharePoint On-Premises if that’s where your site is hosted) and clicking on the “Sites” tab. Click on “New Site” and follow the prompts to create a new site.

Step 3: Add SharePoint services to your project
In Visual Studio, right-click on your project in Solution Explorer and select “Add Services…” In the “SharePoint Services” dialog box, select the “Microsoft.SharePoint” NuGet package and click “Install”. This will add the necessary references to your project for building a SharePoint site.

Step 4: Create a new SharePoint page
In Visual Studio, right-click on your project in Solution Explorer and select “Add” > “New Item…”. In the “Add New Item” dialog box, expand the “SharePoint” section under the “Visual C#” node, then choose “Web Part Page” and name it something like “MyPage.aspx”.

Step 5: Add a SharePoint list to your project
In Visual Studio, right-click on your project in Solution Explorer and select “Add” > “New Item…”. In the “Add New Item” dialog box, expand the “SharePoint” section under the “Visual C#” node, then choose “List Definition” and name it something like “MyListDefinition.xml”.

Step 6: Configure your SharePoint site
Now that you have your project set up with a new SharePoint site, list definition, and page, it’s time to configure your site. In Visual Studio, open the “SharePointTutorial.csproj” file and click on the “Configuration” tab. Here, you can specify the URL of your SharePoint site, the authentication mode, and other settings.

Step 7: Deploy your project
To deploy your project, right-click on your project in Solution Explorer and select “Deploy…” In the “Deploy” dialog box, choose the “SharePoint” deployment option and follow the prompts to deploy your project to your SharePoint site.

That’s it! With these steps, you should now have a basic ASP.NET SharePoint tutorial set up and running.