List Info

Thread: C-Sharp (C#) Group: Re: Text Box Properties




C-Sharp (C#) Group: Re: Text Box Properties
user name
2006-01-31 14:26:12
Thank you for the help, much appreciated.

One last thing, what is the best way to output an error msg
when a
button is clicked, to confirm they havent entered all
required data?

Twigg

C-Sharp (C#) Group: Re: Text Box Properties
user name
2006-01-31 15:38:36
If you use a Validator control this is done automatically (hence why I suggested one, a little extra work but worth it for functionality and maintainability of the solution). If you have just stuck the code in code behind to check for a default value then drop a Literal control on to the page with the "Visible" property set to false by default (you will need to do this in your code behind OnInit if you have viewstate switched on as it will stay Visible even after the user has completed the TextBox), when the user hasn't filled in the TexBox correctly set the Visible property to true.

Liam

On 1/31/06, Twigg < charlestwiggyahoo.co.uk">charlestwiggyahoo.co.uk> wrote:

Thank you for the help, much appreciated.

One last thing, what is the best way to output an error msg when a
button is clicked, to confirm they havent entered all required data?

Twigg

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )