G
Ganesh Krishnamurthy
Hi,
I got a DataList control (the reason for using datalist is i need
columnlayout), using ItemTemplate add Hyperlink control i need the link to
be dynamic ..
<asp:HyperLink id=HyperLink1 runat="server" Text="<%# Container.DataItem(2)
%>" NavigateUrl="product.asp?sku=<%# Container.DataItem(1)%>&dept_id=<%#
Container.DataItem(3)%>">
</asp:HyperLink>
When i issue the above command it doesnt work i get the actual textprinted
there eg:-
http://localhost/WebApplication1/product.asp?sku=<%#
Container.DataItem(1)%>&dept_id=<% Container.DataItem(3)%>
Where as i need it to look like this
http://localhost/WebApplication1/product_detail.asp?sku=1450&dept_id=20
I cannot use a variable since it will be multiple ..
Thx
I got a DataList control (the reason for using datalist is i need
columnlayout), using ItemTemplate add Hyperlink control i need the link to
be dynamic ..
<asp:HyperLink id=HyperLink1 runat="server" Text="<%# Container.DataItem(2)
%>" NavigateUrl="product.asp?sku=<%# Container.DataItem(1)%>&dept_id=<%#
Container.DataItem(3)%>">
</asp:HyperLink>
When i issue the above command it doesnt work i get the actual textprinted
there eg:-
http://localhost/WebApplication1/product.asp?sku=<%#
Container.DataItem(1)%>&dept_id=<% Container.DataItem(3)%>
Where as i need it to look like this
http://localhost/WebApplication1/product_detail.asp?sku=1450&dept_id=20
I cannot use a variable since it will be multiple ..
Thx