Showing posts with label Linq. Show all posts
Showing posts with label Linq. Show all posts

Monday, 18 January 2016

Update Datatable using Linq in C#

Description:-

In this example we explain that how to update datatable using LINQ in C# .Net. Or update datatable column value from other datatable using linq.

Here we explain with simply data table you can also use it with database.

Suppose you have two datatable in which first datatable contain employee id and employee name and second data table contain salary for each employee.so in this situation if you want to display employee name with salary in a single datatable or any data control you must have to use the following code like:

Update Datatable using Linq in C# .Net

Update Datatable using Linq in C#

Description:-

In this example we explain that how to update datatable using LINQ in C# .Net. Or update datatable column value from other datatable using linq.

Here we explain with simply data table you can also use it with database.

Suppose you have two datatable in which first datatable contain employee id and employee name and second data table contain salary for each employee.so in this situation if you want to display employee name with salary in a single datatable or any data control you must have to use the following code like:

Tuesday, 18 June 2013



Description:-
                                   
         
                     In this Example We Can Bind The Country Name with It's Flag in DropdownList.We All Know That the simply bind the name is very easy task but with it's Flag is difficult Task. So,we use the JQUERY to Bind the Country Name With It's Image are Shown Below.

in this Example we can use the jQuery to Bind image in DropDown With it's Name Because Simply That is not Possible.

 For example:

<link rel="stylesheet" type="text/css" href="msdropdown/dd.css"/>
<script type="text/javascript" src="msdropdown/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="msdropdown/js/jquery.dd.js"></script>
<!-- Script is used to call the JQuery for dropdown -->
<script type="text/javascript" language="javascript">
$(document).ready(function(e) {
try {
$("#ddlCountry").msDropDown();
} catch (e) {
alert(e.message);
}
});
</script>
</head>

In above Function we call a msDropDown() Function when selection is changed in the DropDownList.in this msDropDown() Function we Define a code through which we can easily Bind Image of Country with CountryName in DropDownList. 

How to Send Email to User Send Mail in Asp.net

Sorting Row data in gridview Gridview Sorting 

How to handle Concurrency in Linq to Sql Concurrency Example 

To DownLoad the Complete Project Click the Below Download Image Link
download here!  

how to Bind Country in DropDownList with It's Flag or Image in asp.net



Description:-
                                   
         
                     In this Example We Can Bind The Country Name with It's Flag in DropdownList.We All Know That the simply bind the name is very easy task but with it's Flag is difficult Task. So,we use the JQUERY to Bind the Country Name With It's Image are Shown Below.

in this Example we can use the jQuery to Bind image in DropDown With it's Name Because Simply That is not Possible.

 For example:

<link rel="stylesheet" type="text/css" href="msdropdown/dd.css"/>
<script type="text/javascript" src="msdropdown/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="msdropdown/js/jquery.dd.js"></script>
<!-- Script is used to call the JQuery for dropdown -->
<script type="text/javascript" language="javascript">
$(document).ready(function(e) {
try {
$("#ddlCountry").msDropDown();
} catch (e) {
alert(e.message);
}
});
</script>
</head>

In above Function we call a msDropDown() Function when selection is changed in the DropDownList.in this msDropDown() Function we Define a code through which we can easily Bind Image of Country with CountryName in DropDownList. 

How to Send Email to User Send Mail in Asp.net

Sorting Row data in gridview Gridview Sorting 

How to handle Concurrency in Linq to Sql Concurrency Example 

To DownLoad the Complete Project Click the Below Download Image Link
download here!  

Sunday, 21 April 2013



What is Lamda Expression:-

A lambda expression is an anonymous function that you can use to create delegates or expression tree types. By using lambda expressions, you can write local functions that can be passed as arguments or returned as the value of function calls. Lambda expressions are particularly helpful for writing LINQ query expressions.

Description:-

               In this example we can create a CRUD operation with LINQ but not through simple query but with the use of Lamda Expression.


    by using lamda expression we can reduce the length of Query so your code is very shortly and you can easily do the operation rather than simple long query 



In Linq you have to First Create a one DBML File in which you have to Add a all Table that you have to use in a application so not need to Connecton. And also you have to add Namespace using System.Linq instead  of  using System.Data.SqlClient;
 
to show Example of insert,update,delete in gridview using WCF Service please click here WCF Service For Insert,update,Delete
             
to show Example of insert,update,delete in gridview using LINQ please click here insert,update,delete using Linq

to show Example of insert,update,delete in gridview using Naming Container please click here Naming Container for insert update Delete in Gridview

to show Example of insert,update,delete in gridview using Modal Popup please click here insert,update,delete in Modal Popup

 to show Example of insert,update,delete in gridview using Stored Procedure please click here insert,update,delete through stored Procedure

  to show Example of insert,update,delete in XML File and bind to Gridview please click here insert,upadte,delete in XML File

  to show Example of insert,update,delete in gridview using Three Tier Architecture please click here Three Tier Architecture For insert,update,Delete

so How to insert update Delete through Lamda Expression Query are as define below code...




How to insert update delete in Gridview Using LINQ with Lamda Expression in asp.net



What is Lamda Expression:-

A lambda expression is an anonymous function that you can use to create delegates or expression tree types. By using lambda expressions, you can write local functions that can be passed as arguments or returned as the value of function calls. Lambda expressions are particularly helpful for writing LINQ query expressions.

Description:-

               In this example we can create a CRUD operation with LINQ but not through simple query but with the use of Lamda Expression.


    by using lamda expression we can reduce the length of Query so your code is very shortly and you can easily do the operation rather than simple long query 



In Linq you have to First Create a one DBML File in which you have to Add a all Table that you have to use in a application so not need to Connecton. And also you have to add Namespace using System.Linq instead  of  using System.Data.SqlClient;
 
to show Example of insert,update,delete in gridview using WCF Service please click here WCF Service For Insert,update,Delete
             
to show Example of insert,update,delete in gridview using LINQ please click here insert,update,delete using Linq

to show Example of insert,update,delete in gridview using Naming Container please click here Naming Container for insert update Delete in Gridview

to show Example of insert,update,delete in gridview using Modal Popup please click here insert,update,delete in Modal Popup

 to show Example of insert,update,delete in gridview using Stored Procedure please click here insert,update,delete through stored Procedure

  to show Example of insert,update,delete in XML File and bind to Gridview please click here insert,upadte,delete in XML File

  to show Example of insert,update,delete in gridview using Three Tier Architecture please click here Three Tier Architecture For insert,update,Delete

so How to insert update Delete through Lamda Expression Query are as define below code...




 

What Is LINQ:-

                 LINQ is a new feature available from .net version 3.0 and above. It called as LANQUAGE INTEGRATED QUERY there are different flavours of LINQ available like LINQ TO SQL, LINQ TO XML etc.. Taking advantage of LINQ you can query the collection as if you are querying from a database. 

Basic example
var users = from userVariable in studentCollection
select userVariable.ID;
Description:-

            In this example we simply Define How to Create insert update delete in gridview using LINQ. we all know the CRUD operation in Gridview through SQL is also easy but the Advantage of the LINQ is that you need not a connection and the length of code of CRUD operation is very shortly than an SQL query. 

     also the LINQ is language integrated query, you can easily perform all operation and very short time than SQL.


the CRUD operation Demo through SQL is also available click here CRUDinGridview
Send SMS to user Mobile in asp.net Send SMS in asp.net
Enter only Alphabet in TextBox Validation in Javascript for enter only Alphabet

How to insert update delete in Gridview through LINQ in asp.net

 

What Is LINQ:-

                 LINQ is a new feature available from .net version 3.0 and above. It called as LANQUAGE INTEGRATED QUERY there are different flavours of LINQ available like LINQ TO SQL, LINQ TO XML etc.. Taking advantage of LINQ you can query the collection as if you are querying from a database. 

Basic example
var users = from userVariable in studentCollection
select userVariable.ID;
Description:-

            In this example we simply Define How to Create insert update delete in gridview using LINQ. we all know the CRUD operation in Gridview through SQL is also easy but the Advantage of the LINQ is that you need not a connection and the length of code of CRUD operation is very shortly than an SQL query. 

     also the LINQ is language integrated query, you can easily perform all operation and very short time than SQL.


the CRUD operation Demo through SQL is also available click here CRUDinGridview
Send SMS to user Mobile in asp.net Send SMS in asp.net
Enter only Alphabet in TextBox Validation in Javascript for enter only Alphabet

Friday, 5 April 2013




What Is LINQ:-


                 LINQ is a new feature available from .net version 3.0 and above. It called as LANQUAGE INTEGRATED QUERY there are different flavours of LINQ available like LINQ TO SQL, LINQ TO XML etc.. Taking advantage of LINQ you can query the collection as if you are querying from a database. 

Basic example
var users = from userVariable in studentCollection
select userVariable.ID;

Description:-


            In this example we simply Define How to Create insert update delete in gridview using LINQ. we all know the CRUD operation in Gridview through SQL is also easy but the Advantage of the LINQ is that you need not a connection and the length of code of CRUD operation is very shortly than an SQL query.

     also the LINQ is language integared query, you can easily perform all operation and very short time than SQL.


the CRUD operation Demo through SQL is also available click here CRUDinGridview

to show Example of how to send SMS in Asp.Net click here Send SMS to user in asp.net

to show Example of How to send Email to user in asp.net click here send Email in asp.Net

to show Example of How to Export Gridview Data to PDF in asp.net Export Gridview Data to PDF

How to Perform Insert,Update,Delete in Gridview using Linq in asp.net




What Is LINQ:-


                 LINQ is a new feature available from .net version 3.0 and above. It called as LANQUAGE INTEGRATED QUERY there are different flavours of LINQ available like LINQ TO SQL, LINQ TO XML etc.. Taking advantage of LINQ you can query the collection as if you are querying from a database. 

Basic example
var users = from userVariable in studentCollection
select userVariable.ID;

Description:-


            In this example we simply Define How to Create insert update delete in gridview using LINQ. we all know the CRUD operation in Gridview through SQL is also easy but the Advantage of the LINQ is that you need not a connection and the length of code of CRUD operation is very shortly than an SQL query.

     also the LINQ is language integared query, you can easily perform all operation and very short time than SQL.


the CRUD operation Demo through SQL is also available click here CRUDinGridview

to show Example of how to send SMS in Asp.Net click here Send SMS to user in asp.net

to show Example of How to send Email to user in asp.net click here send Email in asp.Net

to show Example of How to Export Gridview Data to PDF in asp.net Export Gridview Data to PDF