Implmenting AJAX in ASP.NET
I have an asp.net application that uploads a file to the server. It has a FileUpload component, a Upload button and a label to display the file details.
// Code behind
protected void UploadButton_Click(object sender, EventArgs e)
HttpPostedFile postedFile = fileUpload;
Label1.Text = postedFile.FileName + "<br>";
When the file is uploaded by the user on clicking the upload button, without refreshing the page, the label should be updated.
Please tell me how to do that using a simple ajax solution. I am not using atlas.