how to show attached files on a TMS WebGrid ???
Posted
by ahmed
on Stack Overflow
See other posts from Stack Overflow
or by ahmed
Published on 2010-03-22T10:35:29Z
Indexed on
2010/03/22
10:51 UTC
Read the original article
Hit count: 440
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
© Stack Overflow or respective owner