Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
pls i need urgent help on ma app, i'm using datalist to display data(including image), but all other data are displaying except the image. The code below:




XML
<asp:DataList ID="DataList1" runat="server" BackColor="White"
                                  BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                                  CellPadding="10" DataKeyField="MarketId" DataKeyNames="MarketId"
                                  ForeColor="Black" GridLines="Horizontal" OnItemCommand="DataList1_ItemCommand"
                                  ShowFooter="False" ShowHeader="False" Style="background-color: #CCFFFF" Width="100%">
                        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                        <ItemTemplate>
                            <div class="imagedownpartleft99">
                                <asp:LinkButton ID="MarketIdLabel" runat="server" Text='<%# Eval("MarketId") %>' Visible="False" />
                                <table class="auto-style3">
                                    <tr>
                                        <td class="auto-style5">
                                            <asp:LinkButton ID="UsernameLabel" runat="server" Text='<%# Eval("Username") %>' />
                                            : </td>
                                        <td>
                                            <asp:Label ID="DateLabel" runat="server" Text='<%# Eval("Date") %>' />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="auto-style5">
                                            <asp:Image ID="Image1"  runat="server" ImageUrl='<%# Eval("PicPath") %>' AlternateText="Image"  BorderStyle="None" Height="74px" Width="100px" />
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="SalesTitleLabel" runat="server" Text='<%# Eval("SalesTitle") %>' />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="auto-style5" colspan="2">
                                            <asp:LinkButton ID="SalesDiscriptionLabel" runat="server" Text='<%# Eval("SalesDiscription") %>' />
                                        </td>
                                    </tr>
                                </table>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<hr style="height: 0px" />
                                &nbsp;</div>
                        </ItemTemplate>
                        <SelectedItemStyle BackColor="#CC3333" Font-Bold="True" Font-Names="Comic Sans MS" Font-Size="Small" ForeColor="White" HorizontalAlign="Left" VerticalAlign="Top" />
                        <SeparatorStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="Black" />
                    </asp:DataList>







pls help...
Posted
Comments
Sergey Alexandrovich Kryukov 11-Apr-13 17:29pm    
ASP.NET? Tag it. What's your language? Tag it, too.
—SA

1 solution

My language is c#. Pls kindly help get solution.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900