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 = "";
Page.RegisterStartupScript("PopupScript", popupScript);Once the user has uploaded the image successfully, I have a button for the user to press close this window in
ImageUploading.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
Niradhip ChakrabortyPosted Jan 5, 2009, 5:50 AM
// 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();
}
r pPosted Jan 4, 2009, 9:52 AM
Thanks
Niradhip ChakrabortyPosted Jan 2, 2009, 5:32 PM
window.close();
to close the dialog window. Before closing the widow just call the desire page.
r pPosted Jan 2, 2009, 9:32 AM
Pravara PatilPosted Jan 2, 2009, 8:53 AM