K
kellygreer1
hi group,
I'm hoping someone here can help me. I have an issue injecting some
JavaScript onto an ASP.NET page... using
ClientScript.RegisterStartupScript.
The issue is I am using System.Random class to help generate a Random
number that will be come part of a client-side id in the HTML Dom. But
occasionally the Random.next() function seems to return the same
number. The Random is creating the same number even though it is
running in two seperate instances of a User Control (ascx file).
I tried to solve the issue by just concatenating
DateTime.Now.Ticks.ToString() to the "client id" in the JavaScript I am
sending..... and sometimes even the Ticks is the same number.
The result of this issue - is that sometimes Bars (div) that are
supposed to be contained in 2 seperate Bar Charts - all appear in the
first BarChart. Is there a way to "force" a random number?
Help. Thanks in Advance,
Kelly Greer
(e-mail address removed)
replace nospam with yahoo
I'm hoping someone here can help me. I have an issue injecting some
JavaScript onto an ASP.NET page... using
ClientScript.RegisterStartupScript.
The issue is I am using System.Random class to help generate a Random
number that will be come part of a client-side id in the HTML Dom. But
occasionally the Random.next() function seems to return the same
number. The Random is creating the same number even though it is
running in two seperate instances of a User Control (ascx file).
I tried to solve the issue by just concatenating
DateTime.Now.Ticks.ToString() to the "client id" in the JavaScript I am
sending..... and sometimes even the Ticks is the same number.
The result of this issue - is that sometimes Bars (div) that are
supposed to be contained in 2 seperate Bar Charts - all appear in the
first BarChart. Is there a way to "force" a random number?
Help. Thanks in Advance,
Kelly Greer
(e-mail address removed)
replace nospam with yahoo