Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everybody, I have a gridview in aspx form, in order to use a calender I binded a javascript function to a NavigateURL, so that we can run javascript code.

The javascript function is running normlly but what i need is to refresh the page at the end of the javascript function


HOw could I do this

Regards


what is needed id to refresh the parent window not the current form, sinve the javascript also contains a calender form and tno need to refresh it, we need to refresh the parent form which we called in the javascript function
Posted
Updated 26-Oct-11 2:51am
v2

1 solution

Try by calling below in your JavaScript function.
JavaScript
location.reload(true);


Updated - Since you changed the Question, here is updated answer. Use below code.
JavaScript
window.opener.location.href = window.opener.location.href;
 
Share this answer
 
v2

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