Friday, August 22, 2008

More Notes




About .NET Framework
http://en.wikipedia.org/wiki/.NET_Framework


The Base Class Library (BCL) includes a small subset of the entire class library and is the core set of classes that serve as the basic API of the Common Language Runtime. The classes in mscorlib.dll and some of the classes in System.dll and System.core.dll are considered to be a part of the BCL.

The Framework Class Library (FCL) is a superset of the BCL classes and refers to the entire class library that ships with .NET Framework.[10] It includes an expanded set of libraries, including WinForms, ADO.NET, ASP.NET, Language Integrated Query, Windows Presentation Foundation, Windows Communication Foundation among others

Difference between Abstract Class and Interfaces

An abstract class is a class that can not be instantiated but that can contain code. An interface only contains method definitions but does not contain any code. With an interface, you need to implement all the methods defined in the interface.
If you have logic that will be the same for all the derived classes, it is best to go for a abstract class in stead of an interface.
You can implement multiple interfaces but only inherit from one class.

Differences between the GridView control and the DataGrid control include:
1.Different custom-paging support.
2.Different event models.

DataReader v/s DataAdapter
Data Reader read only forward only. It's connection oriented. One should explicitly close the connection.
Data Adapter is disconnected. It's acts as a bridge between data set and database.

DataGrid Code
http://www.codersource.net/asp_net_datagrid_part1_azam.html
Grid view control in ASP .Net 2.0
http://www.codersource.net/asp_net_gridviewcontrol.aspx

Garbage Collection
The .NET Framework's garbage collector manages the allocation and release of memory for your application. Each time you use the newoperator to create an object, the runtime allocates memory for the object from the managed heap. As long as address space is available in the managed heap, the runtime continues to allocate space for new objects. However, memory is not infinite. Eventually the garbage collector must perform a collection in order to free some memory. The garbage collector's optimizing engine determines the best time to perform a collection, based upon the allocations being made. When the garbage collector performs a collection, it checks for objects in the managed heap that are no longer being used by the application and performs the necessary operations to reclaim their memory.
This section describes how the garbage collector automatically manages the allocation and release of memory for the managed objects in your application. In addition, it describes the recommended design pattern to use to properly clean up any unmanaged resources that your application creates.


Page Life Cycle
http://blogs.clearscreen.com/dtax/files/aspNET_Page_LifeCycle.jpg

Wednesday, August 6, 2008

Common Questions Links

For CLR/CTS
http://msdn.microsoft.com/en-us/library/zw4w595w.aspx (CLR)
http://msdn.microsoft.com/en-us/library/2hf02550.aspx (CTS)
For OOPS concepts (does not include abstraction)
http://www.eggheadcafe.com/articles/pfc/oopbasics.asp
For ADO.NET concepts in brief
http://en.wikipedia.org/wiki/Ado.net
Abstraction concept: http://forums.msdn.microsoft.com/en-US/csharplanguage/thread/8ad621b8-a915-4d7e-89c3-5dbbc47202fd/
--------------------------------------------------------------------------------
Difference between Overloading and Overriding (http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=36)
OverLoading :- Method Name remains the same with different signatures.[mostly happens for operators]
Overriding : - Method name and signatures must be same.[mostly for functions]


Marshal Class
Provides a collection of methods for allocating unmanaged memory, copying unmanaged memory blocks, and converting managed to unmanaged types, as well as other miscellaneous methods used when interacting with unmanaged code.

Sunday, August 3, 2008

Review / Jay-Z + Linkin Park (Collision Course)


I haven't heard Jay-Z's albums, but have been an ardent fan of Linkin Park. I have found the quality of their rock music, not as grungier than Godsmack. You can enjoy rock as well as listen to it, without much pain. LP's albums like 'Meteora' and 'Hybrid Theory' were highly appreciable. 'Minutes to midnight' was, i suppose their experiment in creating what i call is 'soul rock', something which you'll find in Evanascence's 'Fallen'. I didn't find that enthralling though, as their previous two albums.
With 'Collision Course', i was expecting something innovative from LP, as they've already been doing. Jay-Z has simply cashed in the success of LP's most popular songs, and has his rap act all over the place. Intrestingly, the mixers simply won't give up portions of LP's songs! In each song which the album has, you can easily observe LP overpowering the rap act!
Of the seven songs, i found "Numb/Encore" to be desirable. "What are you waiting for...", the lyrics make the song hippier and heavier. LP's lead singer has always carried out the rap act effectively, only this time its Jay-Z you could see attempting to match that.
Other songs such as "Papercut", "Faint", "In the End" and "Points of authority" lack the punch. At points you would feel it would be better if those songs would've been left untouched. In a nutshell, its a disappointment, if i see in the eyes of my favourite rock band, Linkin Park. Please do not come up with such, in coming times!