I Have a problem to get the right "Name" from the database, The result is the same on all the "Name". I get the information from the same stored procedure. Are there a way to specify witch name I look for?
ex. Text='<%#Eval("tblBrand.Name") %>'
Gets the name in tblBrand. But that dosent work.
<asp:Label ID="lblProductName" runat="server" Text='<%#Eval("Name") %>' CssClass="productHead" />
<asp:Label ID="lblModelName" runat="server" Text='<%#Eval("Name") %>' CssClass="productHead" />
<asp:Label ID="lblSubCategoryName" runat="server" Text='<%#Eval("Name") %>' CssClass="productHead" />
<asp:Label ID="lblBrandName" runat="server" Text='<%#Eval("Name") %>' CssClass="productHead" />
SELECT
Product.ProductID, Product.Name, tblBrand.Name, SubCategory.Name,
tblModel.Name
FROM Product INNER JOIN
tblBrand ON Product.BrandID = tblBrand.BrandID INNER JOIN
tblModel ON Product.ModelID = tblModel.ModelID INNER JOIN
SubCategory ON Product.SubCategoryID = SubCategory.SubCategoryID
WHERE (Product.ProductID = @ProductID)