How many controls do I use on a form?

J

jm

I am trying to understand the basic ASP.NET structure.

I have a data entry form on the page.

I have web controls to display data.

On a separate page (I realize it could be on the same one), but on a
separate page, a user selects from a list a link of a record or they
click to create a new order.

If they click new order, the asp.net page in question has the panel
visible (textboxes, labels, etc.) for data entry. If the users
clicked the link to an existing record, this same page will make the
entry panel invisible and the datalist, grid or whatever will become
visible and display the data bound to it.

Now, here is my question. Should I keep the two separate panels - one
for data entry and one for displaying data, OR, am I supposed to
combine them somehow into one webcontrol so that the datalist or
datagrid serves up nothing, when it is a new record and displays data
when there is.

Thank you.
 
S

Steve C. Orr [MVP, MCSD]

It seems you could do it either way.
I see no major benefits of one over the other.
Do whatever is easiest and will make your users the happiest.
 
J

jm

Wouldn't the benefit be that I wouldn't have to write but one set of
textboxes in one panel?
 
S

Steve C. Orr [MVP, MCSD]

If you say so.
I don't know your app as well as you.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


jm said:
Wouldn't the benefit be that I wouldn't have to write but one set of
textboxes in one panel?

"Steve C. Orr [MVP, MCSD]" <[email protected]> wrote in message
It seems you could do it either way.
I see no major benefits of one over the other.
Do whatever is easiest and will make your users the happiest.
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top