dyarosh
asked on
How to add a horizontal line to my panel dynamically
I am adding pictures dynamically to a panel on my ASP.NET page using the following code in my Page Load Event:
For Each img In nodeList
Dim imgTemp As New Image
imgTemp.ID = "CurImage" & cnt.ToString
imgTemp.CssClass = "borders_off"
imgTemp.ImageUrl = img.InnerText
imgTemp.Attributes("onclic k") = "SetClass(this);"
CurrentPanel.Controls.Add( imgTemp)
cnt = cnt + 1
Next
How can I add a <hr /> between the pictures in the Panel? I tried CurrentPanel.Controls("<hr />") but I got a compile error. Any thoughts?
For Each img In nodeList
Dim imgTemp As New Image
imgTemp.ID = "CurImage" & cnt.ToString
imgTemp.CssClass = "borders_off"
imgTemp.ImageUrl = img.InnerText
imgTemp.Attributes("onclic
CurrentPanel.Controls.Add(
cnt = cnt + 1
Next
How can I add a <hr /> between the pictures in the Panel? I tried CurrentPanel.Controls("<hr
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER