when I click on this button and then try to upload the file, the
reference to the file which has to be uploaded is lost....
and fileBrowse.PostedFile.FileName holds value = ""....
I am not able to figure out how to go about this....
any idea why this is happening....
"Teemu Keiski" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> Just checking that do you have the <form runat="server" ...> set with
> enctype="multipart/form-data" attribute as it is needed for uploading to
> Teemu Keiski
> MCP, Designer/Developer
> Mansoft tietotekniikka Oy
> AspInsiders Member, www.aspinsiders.com
> ASP.NET Forums Moderator, www.asp.net
> AspAlliance Columnist, www.aspalliance.com
I have included all these in the form tag.
The problem here is that since the button is a asp.net server control
it fires the postback event and the contents of the <input type="file"
is lost and the value becomes "" when I click the button.
I want the value to persist even after the post back....