CRUD Operations using Linq and Entity Framework in Asp.net

CRUD Operations using Linq and Entity Framework in Asp.net

CRUD Operations using Linq and Entity Framework in Asp.net and Cascade Delete using Linq Query In this series, I am going to tell you how to perform CRUD operations on a database using entity framework. I use database-first approach for this tutorial which supposes that you already have existing database and you want to automatically generate Entity Model based on this database. < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
First Name:
Last Name:
Email:
Gender: Male Female
Address:
Salary:
Get Multiple DataKeyname Values from Gridview RowCommand in Asp.net

Get Multiple DataKeyname Values from Gridview RowCommand in Asp.net

Get multiple datakeyname values from gridview rowcommand in asp.net DataKeyNames="yourColumnName" If we want to get this DataKeyNames value from gridview in rowcommand event we will get it like this protected void gvUserInfo_RowDataCommand(object sender, GridViewCommandEventArgs e) { GridViewRow gvrow; string str = gvUserInfo.DataKeys[gvrow.RowIndex].Value.ToString(); } If we want to declare multiple DataKeyNames values we will declare it as DataKeyNames="Column1,Column2,Column3" Now if we want get these DataKeyNames values we will declare it like this
Introduction to Entity Framework

Introduction to Entity Framework

ADO.NET Entity Framework is an Object/Relational Mapping (ORM) framework that enables developers to work with relational database. It enabling developers to deal with data as objects and properties.Using the Entity Framework, developers issue queries using LINQ, then retrieve and manipulate data as strongly typed objects using C# or VB.Net. The Entity Framework’s ORM implementation also provides services like change tracking, identity resolution, lazy loading, and query translation so that developers can focus on their application-specific business logic rather than the data access fundamentals. ADO.NET Entity Framework is targeted for developing Enterprise applications which can support MS SQL databases as well as other databases like as Oracle, DB2, MySql and many more. To learn entity framework first we need to know what is orm. I am going to give the overview of orm. What is O/RM? O/RM is an acronym that stands for object/relational mapping. Basically, an O/RM framework is used to persist model objects in a relational database and retrieve them. It uses metadata information to interface with the database. This way, your data-layer code knows nothing about the database structure. The O/RM tool becomes middleware that completely hides the complexity.
Use of Nested Master Page in Asp.net

Use of Nested Master Page in Asp.net

Use of Nested Master Page in Asp.net ********************************We cannot Run Master Page Directly.************************** First Master Page < %@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Display data on Click of Row in GridView using Jquery and Web Service in Asp.net

Display data on Click of Row in GridView using Jquery and Web Service in Asp.net

Display data on Click of Row in GridView using Jquery and Web Service in Asp.net //Table Script————————————————–------------------------------------------------------- CREATE TABLE [tblgrid]( [UserId] [int] IDENTITY(1,1) NOT NULL, [userName] [varchar](50) NULL, [City] [varchar](50) NULL, [Designation] [varchar](50) NULL, [sal] [bigint] NULL ) Design Page or Aspx Page---------------------------------------------------------------
Display data on Click of Row in GridView using Jquery in Asp.net

Display data on Click of Row in GridView using Jquery in Asp.net

Display data on Click of Row in GridView using Jquery in Asp.net //Table Script-------------------------------------------------- CREATE TABLE [tblgrid]( [UserId] [int] IDENTITY(1,1) NOT NULL, [userName] [varchar](50) NULL, [City] [varchar](50) NULL, [Designation] [varchar](50) NULL, [sal] [bigint] NULL ) Aspx Page or Design Page-------------------------------------------