jacktripper
Programmer
I've done a lot of simple pages which redirect after X number of seconds using a javascript function called from the body onload parameter. But, I'm confused on how I can do this with an ASP.NET web form.
So far, I've been able to call some simple javascript functions based on a button event in the code-behind. But how can I run a javascript function from within a VB function?
Here is what I'm trying to do: I've got a web form with validation. It passes data to a web service, and gets results from the service. Based on those results, I want to have display a message on the same page (not a popup or a new page) that says "Thanks. You will be redirected to your previous location in 5 seconds." Then it auto-redirects like the javascript:history.go(-2) function.
Is this doable with javascript in ASP.NET? If I have to use javascript, how can I call a timed redirect function based on the results from a web service?
Many thanks.
So far, I've been able to call some simple javascript functions based on a button event in the code-behind. But how can I run a javascript function from within a VB function?
Here is what I'm trying to do: I've got a web form with validation. It passes data to a web service, and gets results from the service. Based on those results, I want to have display a message on the same page (not a popup or a new page) that says "Thanks. You will be redirected to your previous location in 5 seconds." Then it auto-redirects like the javascript:history.go(-2) function.
Is this doable with javascript in ASP.NET? If I have to use javascript, how can I call a timed redirect function based on the results from a web service?
Many thanks.