So, the answer is basically no? Re: hiding groups of data elements on a webform?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: MDB (mdb_at_hotmail.com)
Date: 05/13/04


Date: Thu, 13 May 2004 07:47:39 -0500

I've already been informed by the user that redirecting is out of the
question; if there's an error, they want to correct it immediately.
Disabling all other controls on the page except for the textbox that needs
to be corrected is the way I need to go, but the question remains, does
there exist any other approach to this other than coding each individual as
disabled( Textbox1.enabled = false, DropDown2.enabled = false, 97 lines of
code altogether for 97 controls) in the error event, and then turning
churning through 97 controls to enable them after the error is resolved? I
dimly remember FoxPro having the ability to assign a single group name to
selected controls, towit, say, these five fields and/or dropdowns have the
same group name Group1, so the command to enable or disable or hide only
those particular fields would be along the lines of Group1.enabled = false
(yes, I know that's not FoxPro syntax, but it's been so long since I've
coded in FP that I'm approximating.

(If that functionality doesn't exists in ASP.NET right now, how best might
one go about suggesting it as a future enhancement???)

MDBloemker
mdbloemker@hotmail.com
"Natty Gur" <natty@dao2com.com> wrote in message
news:eI1CIKKOEHA.3708@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> 1) I dont think that hidding control is a good idea from the user point
> of view, consider disable control instead of hidding them.
>
> 2) for the same resson using panel (<DIV>) to group control is better
> idea then redirecting your user to page with description what he is
> doing wrong but with no option to fix his mistake. stay in the same page
> where error happned, disable all nesesery buttons, display error details
> and let your user fix them.
>
> HTH
>
> Natty Gur[MVP]
>
> blog : http://weblogs.asp.net/ngur
> Mobile: +972-(0)58-888377
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!


Quantcast