Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How much of the "boxed" code does everyone use?

Status
Not open for further replies.

RoadRacer

Programmer
Dec 18, 2000
61
US
I've recently started developing in ASP.NET and I tell you, as neat and easy as all that pre-code is, what a waste it seems to me! I mean, I do the whole drag and drop thing of the DB connection, then dataadapter, and finally a dataset and I see a TON of code pre-built ready to deal with inserts, updates, and deletes when all I wanted to do was bring back a simple record set!

So my question is this, is it better to just leave it as is and deal with it or just clean all that unnecessary code out? Or, if the more advanced developers are totally avoiding that drag-and drop crap (which I'm thinking of doing) and just writing the code manually?

Thanks ...
Ed (RoadRacer) Holguin

"I Hate Computers!"
 
I drag and drop web controls (datagrids, dropdownlists, etc...) onto the page. I use the properties windows to set properties of those controls.

That's pretty much it. Any manipulation of those controls, data access, or anything else is coded by hand.

It's just my preference. I get bogged down by all that extra junk in there, especially if (heaven forbid) I would need to go in there and modify some things. Very tough to put your finger on what you need.

-paul

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Keep in mind too background events, e.g., if you create a datagrid you'll want a dataset if you will be sorting, etc... (prevent re-drilling of the database) or if not, use a reader only to bring out the data, etc... If you are not going to use empty event handlers, just delete them - seems easy though to just drag and drop a dropdown list, set the properties as Paul suggested, and create your events by manual coding, etc... I personally don't see any disadvantages in VS.NET using the drag/drop - in fact, seems more advantageous to do than since declarations, event handlers, etc are automatically produced.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top