Pages

Asp.net MVC Insert, update, delete and Read from Database table Example Code. All CRUD operations.


What is Asp.net MVC?
It is a framework which can be used for developing web applications on .net framework.
MVC stands for Model, View and Controller.

Just follow the below code and do the changes as per your requirement.

PersonController.cs
using MVCCRUD.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

Json Serialization and Deserialization in C#.net Example


What is  JSON Serialization?

Converting a .Net object to a JSON object is know as JSON serialization and vice versa is known as JSON deserialization.

Just follow the below code and do the changes as per your requirement.


using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;

Xml Serialization and Deserialization in C#.net Example

What is XML Serialization?

Converting a .Net object to a XML object is know as XML serialization and vice versa is known as XML deserialization.


Just follow the below code and do the changes as per your requirement.

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

Popular Posts