Hi I am trying to upload a file with the following code:
<asp:FileUpLoad id="FileUpLoad1" AlternateText="You cannot upload files" runat="server" />
<asp:Button id="Button3" Text="Upload" OnClick="upload_song" runat="server" />
<asp:Label id="Label2" runat="server" />
protected void upload_song(object sender, EventArgs e)
{
if (FileUpLoad1.HasFile)
{
//Uncomment this line to Save the uploaded file
FileUpLoad1.SaveAs("E:\\Inetpub\\Domains\\rockBand\\mp3\\" + songID.Text + ".mp3" + " Content Type " + FileUpLoad1.PostedFile.ContentType + " Length " + FileUpLoad1.PostedFile.ContentLength);
Label2.Text = "Received " + FileUpLoad1.FileName + " Content Type " + FileUpLoad1.PostedFile.ContentType + " Length " + FileUpLoad1. ...
Go to the complete details ...