The following article should be helpful:
http://msdn.microsoft.com/library/de...tvscontrol.asp
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
<Jignesh> wrote in message news:uy**************@TK2MSFTNGP12.phx.gbl...
In ASP.NET if am writing a class for Datalayer ,
Public Class XXX{
// I am createing a class file and write all database activity
methods there
}
OR
public class XXX : System.ComponentModel.Component{
// I am Creating a component and write all all database activity methods
there
}
What is the difference?
The only difference i find is in the second case class inherits some class.
and i can drag and drop data controls,
which otherwise in the first case i have to write manually.
Can someone guide me the technical difference and which approach i should
take.
Regards,