Posted on: 2/3/2014 6:07:48 PM | Views : 541

hey
when user upload new document i want to highligh this record i try so many times but i can't here is insert button code
protected void Upload_Click(object sender, EventArgs e) { if (FileUploadControl.PostedFile != null && FileUploadControl.PostedFile.ContentLength > 0) { var allowedExtensions = new string[] { "doc", "docx", "pdf", "pptx" }; var extension = Path.GetExtension(FileUploadControl.PostedFile.FileName).ToLower().Replace(".", ""); if (FileUploadControl.FileContent.Length < 600000 && allowedExtensions.Contains(extension)) { string filename = Path.GetFileName(FileUploadControl.PostedFile.FileName); string folder = Server.MapPath("~/Docfiles/"); Directory.Cr ...

Go to the complete details ...