Details view/Formview versus custom coding

sara23apr
01-13-2007, 05:23 AM
I have a GridView which will display 25 records at a time.
Currently i have done custom coding for Update and Insert operations.

When clicked on the editbutton (in the gridview), I open that record in a page where i manually bind the fields to textboxes and on click of update button i do the update operation

similarly i have coded for the Add/insert button

Friends Please tell me
1) which is the better way of coding? should i use built in Detailsview or Form view OR should i continue to custom code in the way i have been doing.

2) Does using Details view or Form view increase the overhead of the page. What about the speed?

Regards Sara

wayneph
01-14-2007, 07:37 AM
It all depends. :)

I really haven't used the Detailsview/Formview very much yet. (I also haven't gotten to play as much as I've wanted so it's not for lack of desire.)

From what I can tell, the code generated by the built in controls is probably fairly similar to what you would end up doing by hand, so if it works for you, I'd consider using it. In general, you'd write less code, and be able to develop sites and pages faster.

As far as speed goes, I haven't seen a noticable difference, but I don't have any sites that are getting constantly hammered. (The benefit of doing mostly Intranet sites.) There is probably a little overhead, but my guess is that it would be negligble.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum