Hi,
New to the asp.net and I'm trying to figure out how to dynamically add text to the navigateUrl property.
I am databinding to a grid and i want a column for hyperlinks.
Here is the code I have:
<asp:TemplateField HeaderText="">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:HyperLink ID="lnkAddToCart" runat="server" ImageUrl="~/assets/common/icons/addtocart.gif"
NavigateUrl="~/commerce/cart.aspx?AddPartNo=">Add To Cart.</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
I want to dynamically fill in the part number after the "cart.aspx?AddPartNumber=" how is this handled in asp.net?
thanks,
Rick
New to the asp.net and I'm trying to figure out how to dynamically add text to the navigateUrl property.
I am databinding to a grid and i want a column for hyperlinks.
Here is the code I have:
<asp:TemplateField HeaderText="">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:HyperLink ID="lnkAddToCart" runat="server" ImageUrl="~/assets/common/icons/addtocart.gif"
NavigateUrl="~/commerce/cart.aspx?AddPartNo=">Add To Cart.</asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
I want to dynamically fill in the part number after the "cart.aspx?AddPartNumber=" how is this handled in asp.net?
thanks,
Rick