if (UploadPhoto.HasFile) { string UploadFolderPath = "Profile_Pic\\" + txtChildName.Text + "_"; UploadFolderPath = UploadFolderPath + UploadPhoto.FileName; UploadPhoto.SaveAs(Server.MapPath(UploadFolderPath)); if (UploadFolderPath.ToLower().EndsWith(".jpg")) { cmdAdmission.Parameters.Add(new SqlParameter("@Photo_Path", SqlDbType.NVarChar,200)); cmdAdmission.Parameters["@Photo_Path"].Value = UploadFolderPath; } } else { //here i have to take default Profile Pic }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)