If e.CommandName = "Down" Then Dim row As GridViewRow = DirectCast(DirectCast(e.CommandSource, LinkButton).NamingContainer, GridViewRow) Dim lblDoc = TryCast(row.FindControl("lbllog"), Label).Text Dim cs = "http://172.16.16.21/" Dim save = lblDoc.Substring(37) Dim savepath = "D:/Documents/" If (Not System.IO.Directory.Exists(savepath)) Then System.IO.Directory.CreateDirectory(savepath) End If Dim savetolocalsave = savepath + save Dim lblDoca = cs + lblDoc.Substring(16) 'Dim webClient As New System.Net.WebClient() 'webClient.DownloadFile(lblDoca, savetolocalsave)
<a href="server-local-path-to-image/image-name.ext" download="file-name">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)