Hello, I'm new to asp.net and I'm trying to implement a shopping cart.
With the following code (. Vb):
PartialClass a
Inherits System.Web.UI.Page
Protected Sub Page_Load(sender As Object, eAs System.EventArgs) Handles Me.Load
Dim FileNames As ArrayList =Session("SessionCarrito")
If FileNames IsNot Nothing Then
For Each Fname As String InFileNames
ListBox1.Items.Add(Fname)
Next
End If
End Sub
End Class
That code shows a ListBox with the file names that are stored in a session variable. Works fine but I need to show those filenames in a gridview which also display a ID for each item and a button that will eliminate these items.
Anyone know how I can change my code to work with a gridview?
Thanks in advance