protected void uploadImage() { string filename = FileUploadImg.FileName; string fileType = filename.Substring(filename.Length - 4).ToLower(); if ((fileType == ".gif") | (fileType == ".jpg") | (fileType == ".png")) { FileUploadImg.SaveAs("C:\\Users\\Jane\\Desktop\\project\\FileUpload\\FileUpload\\WebRole1\\images\\" + txtboxName.Text + "_" + FileUploadImg.FileName); } else { Interaction.MsgBox("failed"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)