Hi all,
Ok, when I log out of my application I am going to redirect to a new page, called logout.aspx. This page is responsible for deleting session variable and resetting all other variables. Now I would like to add in a function that 10 second after the page loads the user automatically get redirected to another page, in this case say google.com.
Now this is what I was thinking of doing...
1. Loading my page as normal but in the page load() method calling a function called page_Redirect.
2. In the page_Redirect method, I will declare a variable x and let it equal to the current time. I also have a boolean variable which is currently equals to false.
3. I have a while loop that does the following (this is only pseudo code):
Am I approaching the problem the correct way, or is their a simplier way to do what i want to do.
Mike55
Ok, when I log out of my application I am going to redirect to a new page, called logout.aspx. This page is responsible for deleting session variable and resetting all other variables. Now I would like to add in a function that 10 second after the page loads the user automatically get redirected to another page, in this case say google.com.
Now this is what I was thinking of doing...
1. Loading my page as normal but in the page load() method calling a function called page_Redirect.
2. In the page_Redirect method, I will declare a variable x and let it equal to the current time. I also have a boolean variable which is currently equals to false.
3. I have a while loop that does the following (this is only pseudo code):
Code:
dim result as boolean = false
while result = false
if time = (x+10sec) then
result = true
Response.redirect("www.google.com")
end if
end while
Am I approaching the problem the correct way, or is their a simplier way to do what i want to do.
Mike55