<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
"Ganesh Krishnamurthy" <kri...@msn.com> wrote in message
news:eMIZx0J7...@TK2MSFTNGP10.phx.gbl...
in the navigate url place put.. <%# getURL(Container.DataItem(1),
Container.DataItem(3)) %>
in the page header put the server side script..
<script language=c# runat=server>
public string getURL(object strOne, object strTwo)
{
string lstrURL = "product.asp?sku="+ strOne.ToString() +"&dept_id="+
strTwo.ToString();
return lstrURL;
}
</script>
hope this helps,
CMA
"Ganesh Krishnamurthy" <kri...@msn.com> wrote in message
news:eMIZx0J7...@TK2MSFTNGP10.phx.gbl...