TrialUser
asked on
adding li to the ul from server side code
I am trying to add li to ul from code behind. Following is the html I have currently. I need to move this to vb.net
<ul id="mycarousel" runat ="server" class="jcarousel-skin-tang o">
<li><a href = "/rebate/b0" ><img src="/Assets/Rebate/PaperC lipsEtc100 .jpg" style="background-color:#E 7E7E9;padd ing:4px;bo rder:1px solid #D6D7D9;" /></a></li>
</ul>
I started of with this , but I dont see the image. Please help
For countRebate As Integer = 0 To dtRebates.Rows.Count - 1
Dim liCarousel As New HTMLGENriccontrol
mycarousel.Controls.Add(li Carousel)
Dim anchorCarousel As New HtmlAnchor
anchorCarousel.Attributes. Add("href" , "/rebate/b" & dtRebates.Rows(countRebate )("BrandID "))
liCarousel.Controls.Add(an chorCarous el)
Dim imgCarousel As New HtmlImage
imgCarousel.Attributes.Add ("src", "/Assets/images/products/m fglogos/3M _LOGO.jpg" )
anchorCarousel.Controls.Ad d(imgCarou sel)
Next
<ul id="mycarousel" runat ="server" class="jcarousel-skin-tang
<li><a href = "/rebate/b0" ><img src="/Assets/Rebate/PaperC
</ul>
I started of with this , but I dont see the image. Please help
For countRebate As Integer = 0 To dtRebates.Rows.Count - 1
Dim liCarousel As New HTMLGENriccontrol
mycarousel.Controls.Add(li
Dim anchorCarousel As New HtmlAnchor
anchorCarousel.Attributes.
liCarousel.Controls.Add(an
Dim imgCarousel As New HtmlImage
imgCarousel.Attributes.Add
anchorCarousel.Controls.Ad
Next
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you seen the source that's rendered in browser? Can you show the relevant parts here?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.