0
Reply

Asp.net image slide

Ask a question
Mike Simo

Mike Simo

10 years ago
715
1
Hi 
I am using pure css image slideshow, and this slideshow i have put it inside the listview and i have insert the text value with Eval, but still is not shown the image of the product images. Could any one help me please

<section>

<asp:ListView ID="showuserads" runat="server"
DataSourceID="showandupdateuserads"
onselectedindexchanged="showuserads_SelectedIndexChanged">
<ItemTemplate>

<div class="updateicon">
<asp:Button ID="Editbtn" runat="server" CommandName="Edit " Text="Edit" />

</div>
<br />
<asp:Label ID="adstitledetailsshow" runat="server"
style="font-weight: 700; font-size: large; color: #3366FF; font-family: 'Times New Roman', Times, serif;"
Text='<%# Eval("AdsTit") %>'></asp:Label>
<br /><br />


<div id="box">

<ul id="slider">
<li id="1" >

<asp:Image ID="Image1" runat="server" width="650" height="438" Text='<%# Eval("Img1") %>'></asp:Image>
</li>
<li id="2">
<asp:Image ID="Image2" runat="server" width="650" height="438" Text='<%# Eval("Img2") %>'></asp:Image>

</li>
<li id="3">
<asp:Image ID="Image3" runat="server" width="650" height="438" Text='<%# Eval("Img3") %>'></asp:Image>

</li>
<li id="4">
<asp:Image ID="Image4" runat="server" width="650" height="438" Text='<%# Eval("Img4") %>'></asp:Image>

</li>

<li id="Li5" >
<asp:Image ID="Image5" runat="server" width="650" height="438" Text='<%# Eval("Img5") %>'></asp:Image>

</li>
</ul>

<ul id="thumb">
<li><asp:Image ID="thumb1" runat="server" ImageUrl="#1" width="50" height="50" Text='<%# Eval("Img1") %>'></asp:Image></li>
<li><asp:Image ID="thumb2" runat="server" ImageUrl="#2" width="50" height="50" Text='<%# Eval("Img2") %>'></asp:Image></li>
<li><asp:Image ID="thumb3" runat="server" ImageUrl="#3" width="50" height="50" Text='<%# Eval("Img3") %>'></asp:Image></li>
<li><asp:Image ID="thumb4" runat="server" ImageUrl="#4" width="50" height="50" Text='<%# Eval("Img4") %>'></asp:Image></li>
<li><asp:Image ID="thumb5" runat="server" ImageUrl="#5" width="50" height="50" Text='<%# Eval("Img5") %>'></asp:Image></li>
</ul>

</div>

<tr>

<td style="background-color: #f0f0f0" class="style30">
<strong style="color: #333333">Ads Number :</strong></td>
<td class="style39">
<asp:Label ID="Label1" runat="server" Text='<%# Eval("AdsID") %>'></asp:Label>
</td>
<td style="background-color: #f0f0f0" class="style30">
<strong style="color: #333333">Category :</strong></td>
<td class="style38">
<asp:Label ID="Label2" runat="server" Text='<%# Eval("Section") %>'></asp:Label>
 -
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Category") %>'></asp:Label>
</td>



</tr>
<tr>

<td style="background-color: #FFFFCC" class="style30">
<strong style="color: #333333">Price :</strong></td>
<td class="style39">
<asp:Label ID="Label5" runat="server" style="color: #CC0000" Text='<%# Eval("AdsPrice") %>'></asp:Label>
</td>

</tr>

<tr>

<td style="background-color: #f0f0f0" class="style30">
<strong style="color: #333333">Location :</strong></td>
<td class="style39">
<asp:Label ID="Label6" runat="server" Text='<%# Eval("Country") %>'></asp:Label>
 -
<asp:Label ID="Label7" runat="server" Text='<%# Eval("State") %>'></asp:Label>
 -
<asp:Label ID="Label8" runat="server" Text='<%# Eval("City") %>'></asp:Label>
</td>
</tr>
<tr>
<td style="background-color: #FFFFCC" class="style30">
<strong style="color: #333333">Keywords:</strong></td>
<td class="style36">
<asp:Label ID="wtaglbl" runat="server" Text='<%# Eval("Wtags") %>'></asp:Label>
</td>
</tr>
</table>


<br />

<h3>Description :</h3>
<asp:Label ID="Label9" runat="server" Text='<%# BIND ("AdsDesc") %>' CssClass="descriplbl" Width="600px"></asp:Label>
 <br /><br /><br />


</ItemTemplate>
<LayoutTemplate>
<asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
</LayoutTemplate>
</asp:ListView>
<asp:DataPager ID="DataPager1" runat="server" PageSize="1" PagedControlID="showuserads">
<Fields>
<asp:NumericPagerField ButtonType="Image"
NextPageImageUrl="~/iconsimg/next.png" NextPageText=""
PreviousPageImageUrl="~/iconsimg/previous.png" PreviousPageText="" />
</Fields>
</asp:DataPager>

<br />
<asp:SqlDataSource ID="showandupdateuserads" runat="server"
ConnectionString="<%$ ConnectionStrings:BeravaConnectionString %>"
SelectCommand="SELECT * FROM [ads] WHERE ([UID] = @UID)">
<SelectParameters>
<asp:SessionParameter Name="UID" SessionField="UsrNme" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<br />
</section>