Hi,
In my site for the users to upload their images, I am using file uploader.
When the users click on the link in Users.aspx for uploading the image, I open a new small window to upload their images as follows-
string popupScript = "" +
"window.open('ImageUploading.aspx', 'CustomPopUp', " +
"'width=200, height=200, menubar=yes, resizable=no')" +
"";
Page.RegisterStartupScript("PopupScript", popupScript);Once the user has uploaded the image successfully, I have a button for the user to press close this window inImageUploading.aspx. What functionality do I need to write to close the window?When the user closes ImageUploading.aspx it should refresh Users.aspx page so that then only the user can view the image which he/she has uploaded recently.How to refresh Users.apx?Thanks

Pravara Patil37 reputationPosted Jan 2, 2009, 3:53 AM EST
r pRank #4,639 · 333 reputationPosted Jan 2, 2009, 4:32 AM EST
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Jan 2, 2009, 12:32 PM EST
window.close();
to close the dialog window. Before closing the widow just call the desire page.
r pRank #4,639 · 333 reputationPosted Jan 4, 2009, 4:52 AM EST
Thanks
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted Jan 5, 2009, 12:50 AM EST
// use the following javascript function on Users.aspx page
function DoNavigate(strUrl)
{
location.href = strUrl;
}
// on buttonclick of ImageUploading.aspx page,call the following javascript function.
function closeform()
{
x = "Users.aspx";
self.opener.DoNavigate(x);
window.close();
}