G
Guest
I'mtrying to display a list of file names in a directory but using getfiles
displays the entire path. Is there any way to just display the file name?
I'm putting the file names into a datagrid:
'create file list for defect images datagrid
Dim imagepath As String
imagepath = Server.MapPath("\xxxxx\xxxxxx\examples\")
dgfiles.DataSource = Directory.GetFiles(imagepath)
dgfiles.DataBind()
I I'm thinking is with the datagrid I can change the displayed column value
and make it a link to display an image based on the file click on in the
datagrid.
Also I wish the dropdownlist allowed a separate value parameter to set, i.e.
display = "file.gif", value for item = "c:/xxx/xxxx/file.gif".
thanx.
displays the entire path. Is there any way to just display the file name?
I'm putting the file names into a datagrid:
'create file list for defect images datagrid
Dim imagepath As String
imagepath = Server.MapPath("\xxxxx\xxxxxx\examples\")
dgfiles.DataSource = Directory.GetFiles(imagepath)
dgfiles.DataBind()
I I'm thinking is with the datagrid I can change the displayed column value
and make it a link to display an image based on the file click on in the
datagrid.
Also I wish the dropdownlist allowed a separate value parameter to set, i.e.
display = "file.gif", value for item = "c:/xxx/xxxx/file.gif".
thanx.