how to show attached files on a TMS WebGrid ???
- by ahmed
hi, i have a TMS WebGrid , I would like to attach some files ad show them on a Tms WebGrid.
How can I do that in vb.net ? For now I am simply attaching like this on a attach file button ??
If Len(FileUpload1.PostedFile.FileName) > 5 Then
length = FileUpload1.PostedFile.InputStream.Length()
My_Img_Path = "Attachments/"
k_upload_dir = "~/Attachments/"
virtualPath = k_upload_dir + my_img_srno.ToString + Path.GetFileName(FileUpload1.PostedFile.FileName)
My_Img_Path = My_Img_Path + my_img_srno.ToString + Path.GetFileName(FileUpload1.PostedFile.FileName)
phyiscalPath = Server.MapPath(virtualPath)
FileUpload1.PostedFile.SaveAs(phyiscalPath)
my_html_code = ""
lbl_AttahcmnetStatus.Text = "Sucessfully file attached..."
end if