Author: samw | Posted on: 4/20/2009 5:46:33 PM | Views : 270

 I have a page where I test for the user pressing the refresh button on their browser.  If they refresh I want to redirect them to an error message page.  Its all good until I add a file upload control on my page... then it dosent work.
Note that I'm not actualy using the file upload control.  This post is not about handling errors with the file upload control.  The problem I'm having is handling a page refresh which is detected by code in the basepage class.  A sample page follows.  To reproduce the error, load the page, click the Click Here link, then press F5 on the browser.  With the file upload control on the page, the user is not redirected to an error page but instead gets a bit of malformed html that looks like this:
  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML {955246E3-6933-480d-B ...

Go to the complete details ...