Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to fire the function to redirect my default.aspx page but i dont know the syntax how to use it in jquery .can anyone can guide me .

i have the Code as Follows:
$(document).bind("active.idleTimer", function () {
                   // function i want to fire when the user becomes active again
               });


how should i write the function to redirect the Default.aspx page.please Guide ME.

Thanks
Harshal
Posted
Comments
R Harshal 5-May-14 10:43am    
Please anyone Guide me
Nelek 5-May-14 11:00am    
Be patient, this is a world wide site, the one knowing the answer to your problem can be sleeping right now.

1 solution

try below
JavaScript
$(document).bind("active.idleTimer", function () {
    window.location = '<%= this.ResolveClientUrl("~/Default.aspx") %>';
}
 
Share this answer
 
Comments
R Harshal 5-May-14 10:55am    
is it same as this :
window.location.href = "Kaizen2GChartReport.aspx";

Please let me know.
Thanks
Harshal
DamithSL 5-May-14 11:01am    
window.location and window.location.href both will do the same, but value of '<%= this.ResolveClientUrl("~/Default.aspx") %> may need to check.
R Harshal 5-May-14 11:06am    
Ok Thank you So much friend
Thanks A Lot .
R Harshal 5-May-14 11:07am    
So i need to write like this as below:
window.location = '<%= this.ResolveClientUrl("Kaizen2GChartReport.aspx") %>';

Is it.??
DamithSL 5-May-14 11:13am    
Kaizen2GChartReport.aspx is located on root of your web you can use that

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900