Your help and directions are very appreciative. How to achieve this results to access to the server drive to get images for view. ServerDrivedataStream = ServerDriveResponse.GetResponseStream()ĭim reader As New StreamReader(ServerDrivedataStream) Using ServerDriveResponse As HttpWebResponse = DirectCast(ServerDriveReq.GetResponse(), HttpWebResponse) Imports System. The following code snippet returns the full path of a file. 6239 Get Full Path of a File The FullName property returns just the full path of a file including the file name. If Not String.IsNullOrEmpty(location) Thenĭim ServerDriveReq As HttpWebRequest = DirectCast(WebRequest.Create(location), HttpWebRequest) The FileInfo class provides properties to get file name, extension, directory, size and file attributes. Public Function GetFinalRedirectedUrl(url As String) As Stringĭim location As String = String.Copy(url)ĭim responsefromServer As String = String.Empty ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "Key", "NewWindow=window.open(' " GenerateURL "','PDFViewer','menubar=0, location=1, toolbars=1, scrollbars= 1, resizable=1, width=750,height=775, top=150, left=220')", True) NumContainer = ( / 1000 1).toString.Split(".").Firstĭim Mdrive as String = (Convert.ToString("
0 Comments
Leave a Reply. |