> Hi, I have a textbox in an asp.net app and all I want to do is store
> the value of the textbox in a short if there is a value in the text
[quoted text clipped - 25 lines]
> Thanks
> Markus
It's not the short value that is the problem, it's the zero. A numeric
literal (without a period) is of the type int, unless you specify otherwise.
Cast the literal to short: (short)0
Also: it's more efficient to check the length of the string than to make
a string comparison.

Signature
Göran Andersson
_____
http://www.guffa.com
MarkusJNZ@gmail.com - 15 Jul 2007 01:15 GMT
On Jul 15, 9:14 am, G?ran Andersson <gu...@guffa.com> wrote:
> Markus...@gmail.com wrote:
> > Hi, I have a textbox in an asp.net app and all I want to do is store
[quoted text clipped - 40 lines]
>
> - Show quoted text -
Thankyou G?ran
Regards
Markus