I want to use upload file control with ajax in which image should be uploaded on my server and retriving plz tell me the right way.
thanks in advance
Upload an image on the server
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dipa AhujaRank #1,168 · 1.5K reputationPosted May 26, 2010, 2:40 AM EDT
CrishRank #1,487 · 1.1K reputationPosted May 26, 2010, 6:06 AM EDT
for upload file use below code in aspx page...
write below code in .CS file
if (FileUpload1.HasFile)
{
string NewImageFileName = FileUpload1.FileName;
FileUpload1.SaveAs(UploadFolderPath + NewImageFileName );
}
for viewing this file use below code
ImageName.ImageUrl = "~/UploadFolderPath " + NewImageFileName ;