Controls vs Code

  • Thread starter Thread starter jkushwarra
  • Start date Start date
J

jkushwarra

Are drop on data controls the way to build a large ASP project or should I
hand code the data access code. I have never had luck using data controls.
Any info would be greatly appreciated.

John
 
The drop on controls give you code similar to what you would hand code, so
it is more a matter of style (how you like to format your code) rather than
substance (how the code is coded). The data controls are a good way to learn
how to code and what .NET is doing. Whether you continue with drag and drop
is your choice. I would opt for data layer classes, like the Microsoft Data
Application Block.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
YOu can use either, it really depends on how you want to distribute it. I
personally don't use the controls in most instances and would recommend, at
least at first, that you do the same. It helps to really see what's causing
everything to work. On the other hand, the controls have wizards which can
really save you some time, but they hard code connection strings for
instance (in many cases) so you have to go in and edit this or change the
properties.

I don't think there's a right or wrong way. The datacontrols do work and
are robust, so that's not really an issue (at least I haven't found it to be
one), but if you really want to seperate your business logic from your UI,
then you are probably doing to hvae to do some hand coding.

HTH,

Bill
 
Back
Top