|
-
Apr 21st, 2004, 11:05 PM
#1
Thread Starter
Frenzied Member
scray question
what is a good solid design aproch for creating web forms?
Right now I'm am working on a User Control/.ascx that populates a datagrid and allows you to filter data on type, page through the data, and view/edit/delete the data when you select the data. I'm not using the edit command/update commands of the grid. When selected index changes I change Panels. I have two panels nested in another panel. PanelGrid hold the grid and is visible from the start. PanelEdit is not visible. I have them switchng fine, and I can handle the data in the change over fine; but is this a good idea? I mean, it seems like it is. Well, except for the 3 copys of the data. ViewState, DataTable, and the DataGrid all have a copy copy copy.
Magiaus
If I helped give me some points.
-
Apr 22nd, 2004, 10:31 PM
#2
I wonder how many charact
Re: scray question
Originally posted by Magiaus
I'm not using the edit command/update commands of the grid.
I mean, it seems like it is. Well, except for the 3 copys of the data. ViewState, DataTable, and the DataGrid all have a copy copy copy.
Well, I know in a DataList, you have an ItemTemplate, a SelectedTemplate and an EditTemplate (along with header, footer, and alternating of course).
That's really all you need.
Now, I never work with the DataGrid much, I don't know, call me stickler for wanting to do everything myself (I like Repeaters as well, but since I was always building HTML tables anyway, I moved on to the DataList).
Anyway, you can assign a commandname for editing or deleting, doesn't have to be edit or delete.
Plus you can inherit these controls and add your own properties to handle things like 'UserReviewIndex' to assign a UserReview template or whatever template class you create and want to assign. It's really flexible stuff.
You didn't specify why you chose to go this route, and yes, I would be disappointed with having three copies of the same data, being posted to and from the server all the time.
-
Apr 22nd, 2004, 10:36 PM
#3
Thread Starter
Frenzied Member
yeah. i wanted it to page though, and i don't have time to make a pager in .net
i like the repeater to dhtml menu maker i call it
Magiaus
If I helped give me some points.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|