I put the fileupload control in asp:updatepanel. This is not working. If i remove the updatepanel upload is working...
But, my requirement is using updatepanel i have to upload file..help me..
Thanks in advance...
I put the fileupload control in asp:updatepanel. This is not working. If i remove the updatepanel upload is working...
But, my requirement is using updatepanel i have to upload file..help me..
Thanks in advance...
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Purushottam RathoreRank #120 · 18.2K reputationPosted Apr 28, 2009, 9:25 PM EDT
HI ramesh
Use this line of code, this will help you to resolv your problem.
protected void Upload_Click(object sender, EventArgs e)
{
if (FileUpload1.HasFile)
{
FileUpload1.SaveAs(MapPath("~/Image/" + FileUpload1.FileName));
System.Drawing.Image img1 = System.Drawing.Image.FromFile(MapPath("~/image/") + FileUpload1.FileName);
NormalImage.ImageUrl = "~/Image/" + FileUpload1.FileName;
}
}