473,385 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How many controls do I use on a form?

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.
Nov 18 '05 #1
3 1036
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"jm" <jo*************@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
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.

Nov 18 '05 #2
jm
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]" <St***@Orr.net> wrote in message news:<ej**************@TK2MSFTNGP12.phx.gbl>...
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"jm" <jo*************@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
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.

Nov 18 '05 #3
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" <jo*************@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
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]" <St***@Orr.net> wrote in message

news:<ej**************@TK2MSFTNGP12.phx.gbl>...
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.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"jm" <jo*************@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
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.

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Robert | last post by:
Hello. I have been trying out the Lebans ToolTip Classes at http://www.lebans.com/tooltip.htm, to display "balloon" style help tips in a form. The classes I am using are located at...
7
by: Saintor | last post by:
What I do now is I put a value in the tag property, and using the form_current event, I run through all controls properties until the ones with the required tag value are met. Sound OK in theory,...
16
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
3
by: Roger | last post by:
Hi In a Windows forms application I have 2 forms A and B; Form B inherits from form A. Form A is never displayed and its only purpose is to be inherited from and therefore contains mostly...
10
by: Sacha Korell | last post by:
I'm trying to load a drop-down list with all DropDownList control names from another page. How would I be able to find those DropDownList controls? The FindControl method will only find a...
22
by: Mr Newbie | last post by:
I was thinking about developing a workflow application yesterday and was musing over the different approaches than one could take in restricting specific actions on a ticket( Form ) at any said...
7
by: Mike Bulava | last post by:
I have created a base form that I plan to use throughout my application let call the form form1. I have Built the project then add another form that inherits from form1, I add a few panel controls...
8
by: Ryan | last post by:
Ok.. I have a form with lots of stuff on it; a tool strip panel, menu strip, data binding elements (dataset, binding source, table adapter), tab control with 7 tab pages, each page contains a...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
16
by: Mike | last post by:
Hi, I have a form with some controls, and a different class that needs to modify some control properties at run time. Hoy can I reference the from so I have access to its controls and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.