best practices

D

david

i am a little confused on the best pratices for the
implementation of a basic web page which needs to display
varing controls and data. What i am tring to do is create
a asp.net web form/s which will display a search bar and
the top and dynamically change the data in the panel
underneath. what i am unsure of is how i should do this.
should i use frames, panels, inheritance (which i cannot
get to work for a web form) or another method? so, i am
hoping that one of you can help me with this..

thanks
 
C

Cowboy \(Gregory A. Beamer\)

If the data is always in a spreadsheet format, you can set up the page with
the form (search box and button) and a DataGrid that gets bound with the
data. For display only, the column names and number of columns can even
change from query to query. Many times, this is too generic.

If the data display is rather dynamic, a panel makes a nice container to add
information into. You can bind controls and text (via a literal) to the
panel.

These two methods should fit 90%+ of the scenarios you can come up with, as
Data will either be in a spreadsheet, or placed into controls. The latter is
more common when dynamically building forms a user can fill in.

NOTE: For simple lists, use a DataList, for spreadsheet, use a DataGrid, and
for custom repetitive display, use a Repeater. For anything more dynamic
than that, you will have to add controls to a container object, like a Panel
control.

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

**********************************************************************
Think Outside the Box!
**********************************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top