The following post shows how to write different types of joins in LINQ to SQL. I am using the Northwind database and LINQ to SQL for these examples. 1: NorthwindDataContext dataContext = new NorthwindDataContext(); INNER JOIN : 1: var q1 = from c in dataContext.Customers 2: join o in dataContext.Orders on c.CustomerID equals o.CustomerID 3: [...]
Archive for March, 2010
Joins in LINQ to SQL
Posted in .NET, ASP.Net, C#, Dot Net, LINQ, Microsoft Dot.Net, VB.Net on March 15, 2010 | Leave a Comment »
What’s New in ASP.NET 4.0 – Better ViewState Control
Posted in .NET, ASP.Net, ASP.NET 4.0, C#, Dot Net, Microsoft Dot.Net, VB.Net, tagged .Net 4.0, Dot Net on March 15, 2010 | Leave a Comment »
This article is Part II of the multi-part series covering new features on ASP.NET 4.0. In ASP.NET 2.0/3.5, you could disable ViewState for individual controls. However what you could not do is disable ViewState at a Page level and then enable it individually for controls on that page that require it. ASP.NET 4.0 changes that [...]
What’s New in ASP.NET 4.0
Posted in .NET, ASP.Net, ASP.NET 4.0, C#, Dot Net, Microsoft Dot.Net, VB.Net on March 13, 2010 | Leave a Comment »
With the ASP.NET 4.0 release round the corner, I thought of starting an article series that covers the new features introduced in ASP.NET 4.0, one at a time. This article is Part I of this multi-part series. In this article we will learn 2 new properties added to Pages Class. Metkeywords. MetaDescription. The MetaDescription is [...]
PageMethods In ASP.NET AJAX
Posted in AJAX, ASP.Net, C#, Dot Net on March 12, 2010 | 1 Comment »
Page Methods is a new mechanism in ASP.Net application where the server code cab be bound to Asp.Net pages. It is an easy way to communicate asynchronously with the server using Asp.Net Ajax technologies. It’s an alternate way to call the page which is reliable and low risk. In a nutshell, it is used to [...]
Value Type Vs Reference Type
Posted in ASP.Net, C#, Dot Net, VB.Net on March 12, 2010 | Leave a Comment »
Value Type : When a value-type instance is created, a single space in memory is allocated to store the value. Primitive types such as integer, float, Boolean and char are also value types. Structure are value types. Memory Allocation : Value type local variable stored in Stack. C# parameters are (by default) passed by value. [...]
Page life Cycle
Posted in ASP.Net, C#, Dot Net, VB.Net on March 9, 2010 | Leave a Comment »
PreInit: All the Pre and Post events are introduced as part of .NET Framework 2.0. As the name suggests, this event is fired before the Init method is fired. Most common functionalities implemented in this method include: Check the IsPostBack property Set the master page dynamically Set the theme property of the page dynamically Read [...]
Evaluation of .NET Framework
Posted in ASP.Net, C#, Dot Net, VB.Net on March 8, 2010 | Leave a Comment »
View Vs. Stored Procedure
Posted in SQL Server on March 6, 2010 | 2 Comments »
Differences : View does not accepts parameters while SP takes parameters. View contain only one single query while SP contain several statements like conditional , loop etc. Can not perform modification in any table (DDL Statement) while SP can do this. View is nothing but an imaginary table. It contains data at run time only [...]
Trigger Vs. Stored Procedure
Posted in SQL Server on March 6, 2010 | Leave a Comment »
Differences: Actually trigger in action which is performed automatically before or after a event occur and stored procedure is a procedure which is executed when the it is called. Stored procedure is module. SP can pass the parameters which is not a case with Triggers. While creating a Trigger triggering event and action has to [...]