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.
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.