Parse BigInt in Javascript

437 views
Skip to first unread message

Raghupathi Kamuni

unread,
Dec 15, 2009, 2:21:16 AM12/15/09
to DotNetDe...@googlegroups.com
Hi All,
 
I am working on some legacy code.
 
Earlier code had the bitmask fields as integers in SQL Server 2005 , but now they are changed to BigInt
 
How do we parse BigInt datatypes in javascript?
 
Please find relevant functions here
 
Regards,
Raghu

Cerebrus

unread,
Dec 16, 2009, 2:53:18 AM12/16/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
parseInt would be the right way...

But I do not understand; you seem to be calling a JS function from VB
script. Is both the section client side script ? Is this IE specific ?

Raghupathi Kamuni

unread,
Dec 16, 2009, 3:34:35 AM12/16/09
to dotnetde...@googlegroups.com
Both are server side scripts !
 
The Bitmask fields are BigInt datatype in SQL Server, if I use parseInt() in javascript, integer variables overflow and do not give the required results.
How do we parse BigInt datatypes in javascript?
There are some 3rd party BigInt javascript libraries available on internet, but not sure if bitwise operations are possible using them.

Processor Devil

unread,
Dec 16, 2009, 3:38:03 AM12/16/09
to dotnetde...@googlegroups.com
JavaScript is not going to become server side script just by using runat="server"...

2009/12/16 Raghupathi Kamuni <raghu...@gmail.com>

Raghupathi Kamuni

unread,
Dec 16, 2009, 3:53:01 AM12/16/09
to dotnetde...@googlegroups.com
It does work in my legacy Spaghetti code...
 
Similar to this...
Reply all
Reply to author
Forward
0 new messages