It don't think one way is better than the other--performance wise in this case. Just a matter of preference on how you like to organize your pages/site. The .NET hidden panels maybe nice and easy to use than before .NET--when you had to write your own javascript etc. but doesn't mean it's necessary the '.Net way'. If anything the '.Net way' just means these panels are now built in and easier to use.
So if your forms and result DataList templates are long lines of code then it will be easier and maybe best that you separate them into pages (Suggestion: 1 page for the selection type with 6 forms in hidden panels and then 6 separate result pages). If you ever had to upgrade these pages it would be easier to manage the code and design of the result pages than if you had to go fishing through a long page.
If you had everything on one page, user selects the search type (postback: refresh 1), user fills in the form that appears and submits (postback: refresh 2), the results are displayed. Same thing as user selects search type (postback: refresh 1), user fills in form and submits (goes to the relevant form result page: refresh 2), results show. So pick the one that suits your organization style in this case. Note how it's probably easier for you to build the user selects to display appropriate form part nowadays with the .NET way--so I would take advantage of that part and then build different result pages like you did the ASP way.
Main Topics
Browse All Topics





by: NetDeveloperPosted on 2005-02-19 at 11:28:47ID: 13354632
Hi, use as you said Panels where you include the variuos Grids...to maintain the current grid always in the same position in the page set for them an asbsolute position style doing:
tyle","Z-I NDEX: 102; LEFT: 304px; POSITION: absolute; TOP: 104px")
yourgrid.Attributes.Add("s
so that u won't have the effect to see holes of empty space in ur page