Click here to Skip to main content
15,886,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
NavigateUrl='<%#"Default.aspx?ProductId=" + DataBinder.Eval(Container.DataItem, "Id")+"parent"%>'


Actually i want to replace parent in above code with another eval. I tried almost everything but it is not working.

I want to replace parent with <%=Request.QueryString("name")%>.

I hope you will understand my question. Hope you will give me solution. Thanks in advance.
Posted
Comments
Try like...

NavigateUrl='<%#"Default.aspx?ProductId=" + DataBinder.Eval(Container.DataItem, "Id") + Request.QueryString("name")%>'

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900