Thursday, March 22, 2012

Mask Textbox for currency

Dear Friends
I need to show the price which is of SQL datatype "int" in ASP.net textbox
and I need to show the price like this 1000,000,000.
I use .net framework 1.0 not 1.1. Is there an IntputMask or MaskEdit control
in .NET? If so, how can I add it to my toolbox?
Also is datatype SQL int enough for Home price in US?

Thank you very much
Andy EshtryInt data type is
Integer (whole number) data from -2^31 (-2,147,483,648) through 2^31 - 1
(2,147,483,647). Storage size is 4 bytes. The SQL-92 synonym for int is
integer.

as far as the fomat you can use .NET formatting>>> public static int
Parse(string, NumberStyles, IFormatProvider);

this is the contructor for int32.Parse that you would need.

"Andy Eshtry" <andyeshtry@.hotmail.com> wrote in message
news:eWbWDqe4DHA.4068@.tk2msftngp13.phx.gbl...
> Dear Friends
> I need to show the price which is of SQL datatype "int" in ASP.net
textbox
> and I need to show the price like this 1000,000,000.
> I use .net framework 1.0 not 1.1. Is there an IntputMask or MaskEdit
control
> in .NET? If so, how can I add it to my toolbox?
> Also is datatype SQL int enough for Home price in US?
> Thank you very much
> Andy Eshtry
try http://www.pageblox.com ...they have an excellent currency
control as well as other controls which do "as-you-type" validation.
Their controls are focused on real-world business needs instead of UI
elements.

"Gerald Klein" <codemaster@.bigfoot.com> wrote in message news:<e5YDYFf4DHA.416@.TK2MSFTNGP10.phx.gbl>...
> Int data type is
> Integer (whole number) data from -2^31 (-2,147,483,648) through 2^31 - 1
> (2,147,483,647). Storage size is 4 bytes. The SQL-92 synonym for int is
> integer.
> as far as the fomat you can use .NET formatting>>> public static int
> Parse(string, NumberStyles, IFormatProvider);
> this is the contructor for int32.Parse that you would need.
>
> "Andy Eshtry" <andyeshtry@.hotmail.com> wrote in message
> news:eWbWDqe4DHA.4068@.tk2msftngp13.phx.gbl...
> > Dear Friends
> > I need to show the price which is of SQL datatype "int" in ASP.net
> textbox
> > and I need to show the price like this 1000,000,000.
> > I use .net framework 1.0 not 1.1. Is there an IntputMask or MaskEdit
> control
> > in .NET? If so, how can I add it to my toolbox?
> > Also is datatype SQL int enough for Home price in US?
> > Thank you very much
> > Andy Eshtry

0 comments:

Post a Comment