Redirecting to a page with multi file uploader

Last post 01-27-2009, 9:37 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  01-23-2009, 2:47 PM 48034

    Redirecting to a page with multi file uploader

    Since the control fires the FileUploaded event each time a file is posted I have no way of knowing when the last file was processed. I need to redirect to another page or set a label status...something to alert the user that their files are done.

    Any ideas? 
  •  01-27-2009, 9:37 AM 48089 in reply to 48034

    Re: Redirecting to a page with multi file uploader

    Hi,
     
    You can use OnPreRender event
     
    for example:
     
    int _c;
    Uploader_FileUploaded(...)
    {
     _c++;
    }
    protected override void OnPreRender(EventArgs e)
    {
    base.OnPreRender(e);
    if(_c>0)Response.Redirect(myurl);
    }
     
    Regards,
    Terry
View as RSS news feed in XML