I'm using the Upload control and it works as advertised, however, once the file is uploaded my form reloads.
Once when the form loads I check the database to see if I have a file. If I do then I hide the upload control (panel) and display another panel that has a link to the uploaded file. Included in this other panel is the option to delete the uploaded file. The delete feature doesn't do anything with the actual file, it just blanks the database field then tells th form to show the upload control panel.
After this happens the upload control is once again visible, however, doens't look or work correctly. If I mouse over the text box, another textbox appears along with another button titled "browse".
The only way I'm able to get the upload control to appear normal again is to click the Upload button again (which does nothing because there is no file selected). I'm assuming this post back is fixing the look of the upload control.
I've attached a screen shot of the upload control "after" is shown again on the form.
Does anyone know how to correct this?
FYI: I have a .NET application with Master/Contenet pages and all of this is within an AJAX UpdatePanel.
Once when the form loads I check the database to see if I have a file. If I do then I hide the upload control (panel) and display another panel that has a link to the uploaded file. Included in this other panel is the option to delete the uploaded file. The delete feature doesn't do anything with the actual file, it just blanks the database field then tells th form to show the upload control panel.
After this happens the upload control is once again visible, however, doens't look or work correctly. If I mouse over the text box, another textbox appears along with another button titled "browse".
The only way I'm able to get the upload control to appear normal again is to click the Upload button again (which does nothing because there is no file selected). I'm assuming this post back is fixing the look of the upload control.
I've attached a screen shot of the upload control "after" is shown again on the form.
Does anyone know how to correct this?
FYI: I have a .NET application with Master/Contenet pages and all of this is within an AJAX UpdatePanel.