troubleshooting Question

asp.net repeater

Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America asked on
C#ASP.NET
6 Comments1 Solution54 ViewsLast Modified:
Inside of the asp.net repeater, how can I put like <%# Left(Eval("VehicleID"),3) %>?



        <asp:Repeater runat="server" ID="classCCoachList">
            <ItemTemplate>
                <div class="property span3">
            <div class="image">
                <div class="content">
                    <a target="_blank" href="ccc.aspx?VehicleID=<%# Eval("VehicleID") %>&VID=<%# Eval("VehicleID") %>&Vname=<%# Eval("VehName")%>&Make=<%# Eval("Make") %>&Type=<%# Eval("Type") %>&Location=Stanton, CA&DailyRate=<%# Eval("DailyRate") %>" ></a>
                    <img src="http:///ccc.com//UserData/VehicleImages/<%# Eval("VehicleID") %>/medium/Primary.jpg" alt="<%# Eval("MakeModel") %>">
                </div><!-- /.content -->

                <div style="display:none;" class="price">1 250 000€</div><!-- /.price -->
                <div style="display:none;" class="reduced">Reduced </div><!-- /.reduced -->
            </div><!-- /.image -->

            <div class="title">
                <h2><a target="_blank" href="sdfgfd.aspx?VehicleID=<%# Eval("VehicleID") %>&VID=<%# Eval("VehicleID") %>&Vname=<%# Eval("VehName")%>&Make=<%# Eval("Make") %>&Type=<%# Eval("Type") %>&Location=Stanton, CA&DailyRate=<%# Eval("DailyRate") %>" >
                     <%# Eval("VehName")%>
                    </a></h2>
            </div><!-- /.title -->

            <div class="location>LA, CA</div><!-- /.location -->
            <div class="area">
                <span class="key">Price:</span><!-- /.key -->
                <span class="value"><%# Eval("DailyRate") %></span><!-- /.value -->
            </div><!-- /.area -->
            <div class="bedrooms"><div class="content">4</div></div><!-- /.bedrooms -->
            <div class="bathrooms"><div class="content">1</div></div><!-- /.bathrooms -->
        </div>
            </ItemTemplate>
        </asp:Repeater>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros