troubleshooting Question

asp.net repeater

Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America asked on
ASP.NETC#
5 Comments2 Solutions74 ViewsLast Modified:
What I hope to do is below:
if <%# Eval("DailyRate") %> != ""
 show table1
else
 hide table1

Is it possible?

<asp:Repeater runat="server" ID="classACoachList">
            <ItemTemplate>
                <div class="property span3">
            <div class="image">
                <div class="content">
                    <a target="_blank" href="RVRentalCoach.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://www.sharemycoach.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="RVRentalCoach.aspx?VehicleID=<%# Eval("VehicleID") %>&VID=<%# Eval("VehicleID") %>&Vname=<%# Eval("VehName")%>&Make=<%# Eval("Make") %>&Type=<%# Eval("Type") %>&Location=LA, 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 -->

                     



<table id=table1>     
<tr>
                            <td style="text-align:center;">
                                <object>
                                    <param name="movie" value='http://www.youtube.com/v/WQxExGmkMfo?version=3&feature=player_embedded&autohide=1' />
                                    <param name="allowFullScreen" value="true" />
                                    <param name="allowScriptAccess" value="always" />
                                    <embed src='http://www.youtube.com/v/WQxExGmasdfasdfadskMfo?version=3&feature=player_embedded&autohide=1' type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="720" height="405" />
                                </object>
                            </td>
                        </tr>
</table>
        

</div>
            </ItemTemplate>
        </asp:Repeater>
ASKER CERTIFIED SOLUTION
Shalu M

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
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 2 Answers and 5 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