Click here to Skip to main content
15,891,424 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am retriving data using repeater Hyperlink and Name


XML
<div id="sidebar" class="span3">
        <div class="well well-small"><a id="myCart" href="product_summary.html"><img src="../../../../../../../../../themes/images/ico-cart.png" alt="cart"/>3 Items in your cart  <span class="badge badge-warning pull-right">$155.00</span></a></div>
        <ul id="sideManu" class="nav nav-tabs nav-stacked">
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
            <li class="subMenu open"><a href ="../../../../Index.aspx?id=<%# Eval("Id")%> "> <%#((Name_Repeater)Container.DataItem).Name   %></a>
              <ul>

             <li><a href ="../../../../Description.aspx?id=<%# Eval("Id")%> "><%#((Name_Repeater)Container.DataItem).Subname   %></li></a>
</ul>
                    </li>
             </ItemTemplate>
            </asp:Repeater>
        </ul>
        <br/>


            <div class="thumbnail">
                <img src="../../../../../../../../../../../themes/images/payment_methods.png" title="Bootshop Payment Methods" alt="Payments Methods"/>
                <div class="caption">
                  <h5></h5>
                </div>
              </div>
    </div>



Help


<li><a href ="../../../../Description.aspx?id=<%# Eval("Id")%> "><%#((Name_Repeater)Container.DataItem).Subname %></li></a>


Hyperlink with text is not working in above Code
Posted
Comments
ZurdoDev 4-May-15 10:36am    
What does "not working" mean?
Gurpreet Arora Malhotra 4-May-15 10:45am    
When I click on link for redirection
Suppose Two item Display when i click on one its id is 1 and on second its id is 2

But in this Li tag I try to click on one it highlights both item and showing one id
ZurdoDev 4-May-15 10:49am    
Sounds like you aren't closing your tags properly.
ZurdoDev 4-May-15 10:52am    
I would suggest viewing the source and seeing where it is going wrong.
Suvendu Shekhar Giri 4-May-15 15:15pm    
Tag correctly to attract respective users who can help. Sql Server 2014 has nothing to do with your problem.

1 solution

Try changing outer double quotation symbols in hyperlink to single quotation like
HTML
<li class="subMenu open">
<a href='../../../../Index.aspx?id=<%# Eval("Id")%>'>
</a></li>

Hope, it helps :)
 
Share this answer
 
v2
Comments
Gurpreet Arora Malhotra 5-May-15 1:51am    
I am not able to add full code here

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