Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.
Protected Sub loadFileGrid() Dim filePaths() As String = Nothing If Session("files") = "tasks" Then filePaths = Directory.GetFiles(Server.MapPath(Session("taskFilePath"))) ElseIf Session("files") = "projects" Then filePaths = Directory.GetFiles(Server.MapPath(Session("projectFilePath"))) End If Dim files As List(Of ListItem) = New List(Of ListItem) For Each filePath As String In filePaths files.Add(New ListItem(Path.GetFileName(filePath), filePath)) Next GridView1.DataSource = files GridView1.DataBind() End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.