Good day!
I just want a little help on my querystring structure. The value of the querystring parameter was pulled out from the database but it seems that I am missing something the way I code it. My code Below.
Something on that red font I was missing?
My Code Behind:
Thank you!
I just want a little help on my querystring structure. The value of the querystring parameter was pulled out from the database but it seems that I am missing something the way I code it. My code Below.
C#:
<ul>
<asp:Repeater ID="rptr_ResidentailFoam" runat="server">
<ItemTemplate>
<li>[COLOR=#ff0000]<asp:HyperLink ID="" runat="server" NavigateUrl="~/products-services.aspx?type=<%# DataBinder.Eval(Container.DataItem, "QueryString_Type") %>">[/COLOR] <%# DataBinder.Eval(Container.DataItem, "FoamType_ChildName") %></asp:HyperLink></li>
</ItemTemplate>
</asp:Repeater>
</ul>
Something on that red font I was missing?
My Code Behind:
C#:
SqlDataAdapter mycommand = new SqlDataAdapter("Select Id, FoamType_ChildName, ChildIcon_ClassName, ParentTypeID, QueryString_Type From tbl_ProdServicesMenu_FoamProductType_Children Where ParentTypeID = " + FoamTypeID, Conn);
DataSet ds = new DataSet();
mycommand.Fill(ds);
rptr_ResidentailFoam.DataSource = ds;
rptr_ResidentailFoam.DataBind();
mycommand.Dispose();
ds.Dispose();
Thank you!