I would like to get a folder name instead of a file name and display it in the text box.
I am using this code in the ASP.NET webform but it's good only for a file name not folder name.
Dim infolder As String
infolder = Path.GetDirectoryName(infolder)
txtBox.Text = infolder