LINQ in .NET

 101 Samples of LINQ: http://code.msdn.microsoft.com/101-LINQ-Samples-3fb9811b LINQ TO SQL: With .NET Framework 3.5 Microsoft released Language Integrated Query aka LINQ. LINQ enables developers to query data sources using a query like syntax with both C# and VB.NET. These data sources can be collections, SQL Server databases, XML, DataSets etc. Other than what is supplied by Microsoft, […]

Rate this:

Language Converter in .NET Application

Using the Bing API to Translate Text in ASP.NET Introduction: In this article we will see how to use the Bing translation API to translate our text from one language to another language. As all of you know the Google API is no longer available free so our next choice must be Bing. So in […]

Rate this:

Basic Insert,Update,Delete,Search in .NET ( CRUDE Operations)

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using System.Data.SqlClient; using System.Collections; using System.Configuration; public partial class CRUDEOperations : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // } protected void btnAdd_Click(object sender, EventArgs e) { using (SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings[“Emp”].ConnectionString)) { DataTable dt=new DataTable(); SqlDataAdapter da […]

Rate this:

Validations using .NET & JavaScript

Form validation – checking for non-empty This has to be the most common type of form validation. You want to be sure that your visitors enter data into the HTML fields you have “required” for a valid submission. Below is the JavaScript code to perform this basic check to see if a given HTML input […]

Rate this:

How to Create & Edit Windows Registry in .NET?

In this tutorial, I’m going to go through the code required to edit the Windows registry using C#.  This will include creating new keys and values as well as modifying existing ones. The Windows registry is used to store all the configuration information relating to Windows setup, user preferences, software installed and the devices. The […]

Rate this:

How to use Reflection in .NET

Reflection Examples [C#] This example shows how to dynamically load assembly, how to create object instance, how to invoke method or how to get and set property value. Create instance from assembly that is in your project References The following examples create instances of DateTime class from the System assembly. [C#] // create instance of class […]

Rate this: