ImageButton inside Datalist
Web Development
1
Posts
1
Posters
0
Views
1
Watching
-
I have datalist with imageButton generated from folder with Images. I am trying to change border on clientClick event to indicate that user selected that image. I was able to get click event for image but how to I unselect others images? function ccSelectedImage(e) { { alert(e); e.style.border = "1px solid Red"; return false; } }
Dim dir As DirectoryInfo = New DirectoryInfo(MapPath("Images")) Dim files As FileInfo() = dir.GetFiles() Dim listItems As ArrayList = New ArrayList() For Each info As FileInfo In files listItems.Add(info) Next dtlist.DataSource = listItems dtlist.DataBind()