I have this page that has a security captcha function call generator, but I only want the captcha to change when the page is initally loaded, not when the page does a postback to itself.
Is there a way to handle this, outside of using ajax.
page code
function code
My one thought was to somehow only have the randomize function run when I wanted the value to change.
Thanks
Is there a way to handle this, outside of using ajax.
page code
Code:
<%
dim MyResult
MyResult = GetRandomNumber(Cint(0), Cint(9))
%>
function code
Code:
function GetRandomNumber(lowrange, highrange)
randomize()
GetRandomNumber = Int((highrange - lowrange + 1) * Rnd + lowrange)
end function
My one thought was to somehow only have the randomize function run when I wanted the value to change.
Thanks