Given the code on the content page:
Are you sure you want to add another <asp:Literal runat="server" id="Name1" /> to the basket?
You already have a <asp:Literal runat="server" id="Name2" /> in your basket.
<asp:Literal runat="server" id="Name3" /> has not yet been added to your basket.
And then in the codebehind:
Name1.Text = Product.Name;
Name2.Text = Product.Name;
Name3.Text = Product.Name;
I’m pretty sure this isn’t the greatest way to go about things, is there an ASP.net feature or a design pattern I’m unaware of?
Why don’t you use
string.Format?