Dependency Injection

What is dependency Injection? Dependency Injection(DI) means to decouple the objects which are dependent on each other. Say object A is dependent on Object B so the idea is to decouple these object from each other. We don’t need to hard code the object using new keyword rather sharing dependencies to objects at runtime in […]

Rate this:

301 permanent redirect in asp.net ?

In the next release of the .NET Framework (.NET Framework 4.0) there is a new response method for permanently redirecting a request: Response.RedirectPermanent.  You can see the Beta MSDN documentation for Response.RedirectPermanent here.  This will automatically issue the 301 moved permanently status code and redirect to the target page.  A permanent redirect status code tells a search engine […]

Rate this:

Authentication and Authorization in ASP.NET

Introduction This article will discuss how to implement ASP.NET authentication and authorization. This article initially starts with authentication and authorization concepts and later explains the three important ways of doing authentication and authorization i.e. windows, forms and passport. As the article moves ahead it explains basic, digest and integrated authentication in depth. This article also […]

Rate this:

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:

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:

An Introduction to Entity Framework for Absolute Beginners.

Introduction This article introduces Entity Framework to absolute beginners. The article is meant for developers who are primarily using ADO.NET to write their data access layers.  Many experienced developers will find this article very basic but since the article is written from the perspective of beginners, I’ve tried to keep things simple. Background ADO.NET is […]

Rate this: