Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

my scenario in detail is like: I have login page,Main page on which different linkbuttons are present on clicking those linkbuttons again new window opens using window.open() and can view data.
Case 1: And on one linkbutton i open 1 page on that page i have option manage data button, on clicking that i opens a new page for adding data and then closes it and i redirects it to pervious page at the same time i refreshes this pervious page so that added data i can see in pervious page in the form of new link.. This is my functionality.

Case2: now I have logout link on Main page's right corner. when i clicks on it i want to close main page and all opened windows and redirecting to login page. so that i maintained 1 array on main page for Win objects. so i can achieve caase 2 that is of logout button functionality. Now the thing is that when i refreshes data in case 1 , my array of case 2 becomes resets to null and i cant do functionality of case2 and vice-versa.
if anybody know then pls. help.

Thanks
Posted
Comments
Karthik Harve 25-Jun-12 5:49am    
How you are refreshing the previous page in Case 1 ...?? place that code.
Manisha Tambade 25-Jun-12 6:11am    
refresh prev page in case 1:
I am calling below function on child pages's onunload event of javascript.
so that i able to refresh main page and get data on main page in the form of linkbutons which is added through child page.
function refreshParent() {
window.opener.location.href = 'Mainpage.aspx';

if (window.opener.progressWindow) {
window.opener.progressWindow.close()
}
}

thanks.

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