How to send parameters with href

Engagosoods

New Member
I'm developing a web application in asp.NET using C# and EntityDataSource.I have a listview to show a list of product, i want to redirect to another form that has the details of the product selected (you can select the name or image of the product). The redirection occurs successfully but the product in the detailview is always the same (the fist one).\[code\]<ItemTemplate> <tr style=""> <td> <asp:Label ID="ProductIDLabel" runat="server" Text='<%# Eval("ProductID") %>' /> </td> <td> <asp:Label ID="ListPriceLabel" runat="server" Text='<%# Eval("ListPrice") %>' /> </td> <td> <a href='http://stackoverflow.com/questions/15868252/<%# String.Format("Product.aspx?id={0}", Eval("ProductID")) %>' > <asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' /> </a> </td> <td> <a href='http://stackoverflow.com/questions/15868252/Product.aspx?ID=<%# Eval("productID") %>' > <asp:Image ID="Image1" ImageUrl='<%# String.Format("~/ImageProduct.ashx?id={0}", Eval("ProductID")) %>' runat="server" /> </a> </td> <td> <asp:Label ID="ThumbnailPhotoFileNameLabel" runat="server" Text='<%# Eval("ThumbnailPhotoFileName") %>' /> </td> </tr></ItemTemplate>\[/code\]Any help ?Thanks in advance!
 
Top