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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
CrishPosted May 26, 2010, 10:06 AM
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 ;
Dipa AhujaPosted May 26, 2010, 6:40 AM