How to fill new or updated value in control it was a big concern? So what I had done is just create one random number and append it at the end of URL so every time new http request will be different in browser and it will not run from cache.
So now how to generate a random number?
This is the function which will return next random number between 0.0 to 0.999999 so this will generate decimal number every time. If we require integer number then we can convert it using either round or floor function.
The round() method rounds a number to the nearest integer.
The floor() method rounds a number DOWNWARDS to the nearest integer, and returns the result.
So finally we can use it as like this
randomnumber = Math.floor(Math.random());
randomnumber = Math.round(Math.random());
it will return value between 0 to 9