FileUpload causes error when pressing the browser back button..

S

ScottyinLA

I have an ASP.Net WebPage that has a image control, a submit button, and a
fileupload control on it.

When I run the app, the page loads fine. I can click on the image and get
redirected to another page. When I click the IE browser "Back" button, the
first page comes back fine.

If I then click the submit button, the page refreshes (as its sposed to).
Now, when I click on the image and go to the other page, I get a "Page cannot
be displayed" error. This only happens after the page has been posted back it
seems.

If I take the FileUpload control off the page, the error is gone. I can
press the submit button, navigate away and come back no problem.

Can anyone help???

Thanks.

<form id="form1" enctype="multipart/form-data" runat="server">
....

<asp:FileUpload ID="uplFile" runat="server" Width="275px" />
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top