Author: sandhya1234 | Posted on: 9/26/2008 9:09:09 PM | Views : 643

Hi,

Data is inserted to below code.if i didn't select the photo,then data is
inserted but whenever i have to retrieve the data then i got one error
"parameter is not valid",i didn't insert the photo then this error came,if somebody they have to select the photo r not,if they didn't select the photo thwn what we have to do.

Below My Code.
string ImgPath = UploadFile.PostedFile.FileName;
string ImgName = ImgPath.Substring(ImgPath.LastIndexOf("\\") + 1);
string ImgExtend = ImgPath.Substring(ImgPath.LastIndexOf(".") + 1);
Go to the complete details ...