The solution would obviously involve using either JavaScript or a Validator,
which I am assuming you already knew. If you want to use JavaScript, here
are the best solution I could come up with:
Use the onchange JavaScript event handler to call a function that removes
any spaces from the beginning of the line. This will remove any spaces from
the beginning when the user leaves the TextBox, therefore preventing them
from submitting a string that starts with a space.
However, my recommendation would be to use the RegularExpressionValidator.
There are obviously other JavaScript algorithms and other Validators that
would work as well, but these would be my top choices for each one.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/ [quoted text, click to view] "Rob Eventine" <btb101@ntlworld.com> wrote in message
news:Dnlrj.7668$wH5.6216@newsfe1-gui.ntli.net...
> hi all,
> is there a way to eliminate a 'space character' (the space bar being
> pressed) from the beginning of a line?
>
> eg:
> hello
> as opposed to
> hello
>
> thanks in advance
>
>
>
>