JavaScript Why is my value rounded (up or down)

In my entity framework model (from oracle) I have a table that contains the following Column enter image description here

Now. I use an asp.net webforms datagrid to view the data. At one stage the value in this column is 635838861561284513. I do (in theory) send this value through as a parameter on the url when I click a custom link on this grid. The value is added to the url as follows:

<a target='_blank' href="javascript:Cover(<%# Eval("BATCH_NO") %>);">View</a>

Now I noticed upon debugging that the value "<%# Eval("BATCH_NO") %>" comes through as 635838861561284500 and not 635838861561284513.

But the value displays correctly in the grid!!

Can anyone explain why this is happening?

Answer:1

How would I make a sticky nav bar without using jQuery? I want to do something like: if (scrollheight == x) navbar.addclass "sticky"

How would I make a sticky nav bar without using jQuery? I want to do something like: if (scrollheight == x) navbar.addclass "sticky"

The following code reads a file and turned each line into array items: fs.readFile('en.txt', 'utf8', function (err, data) { if (err) { return console.log(err) } enStrings = data.split(/[\r\...

The following code reads a file and turned each line into array items: fs.readFile('en.txt', 'utf8', function (err, data) { if (err) { return console.log(err) } enStrings = data.split(/[\r\...

  1. javascript split extra element

How can I force the browser to automatically reload a rails app at 5am each day? I have a web app that is installed on a wall mounted TV that functions as a sort of live dashboard at our office. It ...

How can I force the browser to automatically reload a rails app at 5am each day? I have a web app that is installed on a wall mounted TV that functions as a sort of live dashboard at our office. It ...

I'm trying to detect when an element gets added to the dom, like so: import {DOM} from 'rx-dom'; let mutationStream = (selector) => { return DOM.fromMutationObserver(getElementsFromSelector(...

I'm trying to detect when an element gets added to the dom, like so: import {DOM} from 'rx-dom'; let mutationStream = (selector) => { return DOM.fromMutationObserver(getElementsFromSelector(...