Link to home
Start Free TrialLog in
Avatar of Rabbit W
Rabbit W

asked on

Add and Remove List

When I run the html file, it is fine  for the ADD and Remove, But when I run the asp page, the image won't be added. per the code:
 <table>
  <tr>
    <td> 
     
          
   <div class="p">
          <div class="thumbnail">
            <div class="thumbnail-img-<%# DataBinder.Eval(Container.DataItem, "idProduct") %>">
        <a href="product.aspx?id=<%# DataBinder.Eval(Container.DataItem, "idProduct") %>">
          <div class="img-p">
            <img class="thumbnail-img-<%# DataBinder.Eval(Container.DataItem, "idProduct") %>" src="<%=LINK_IMAGES%>small/<%# DataBinder.Eval(Container.DataItem, "idProduct") %>.jpg">            
          </div>
        </a>
        
        <p><button class="btn add-remove-btn btn-primary" data-identitfier='4'>Add to List</button>
              </p>
      </div>
    </td>
  </tr>   
    
	
    </table>
    

Open in new window

Avatar of OMC2000
OMC2000
Flag of Russian Federation image

what are you getting as the result of
<%# DataBinder.Eval(Container.DataItem, "idProduct") %>
?
Avatar of Rabbit W
Rabbit W

ASKER

It  gets nothing.
SOLUTION
Avatar of OMC2000
OMC2000
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
After it has been  updated, nothing has been added and the list  number remains zero.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Is there any way to show the add list area till the add button is clicked? How to keep the list area till the user click the remove the button ?
Hi Rabbit,

Sure we can try to adjust it but I would suggest adding a new question for this where we could see the full code HTML/CSS/JS of the "list area".