|
Hi,
I have a problem when i refresh the page after postback to server.
The scenario is as follows:
I have input type file control which has been made runat server control ,after selecting the file from browse button and successfully uploading the file,which is then dispalyed in a datagrid control which is populated from SQL server database,and if the page is refreshed
the page remains as it is ,and if gain a file is selected from the browse button adn uploaded succesfully which is again displayed in the datagrid mentioned above,,,and now the actual problem occurs....
now if page is refreshed the second file which was uploaded is agian displayed and if this process of page refresh is continued ,,the second file uploaded goes on getting added to the datagrid......that is its uploading the file even when it founds nothing in the file control on page refresh.....
Thank You,
Sandhya
|
|
|
I'd have to see the problem in action, I'm afraid. Can you post a link?
In general, the "file upload" or "input type=file" control is problematic, due to the browser security model. You may have to do a client-side form.reset() to clear the field value.
|
|
|
|
|
|
|
|
|
|