Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having trouble with creating custom string with EditUrl and passing it to Hyperlinks in GridView column. How can add custom string created with EditURL to NavigateURL?

For now i am trying like this:

<asp:templatefield headertext="Test" xmlns:asp="#unknown">

                   <itemtemplate>
                       <asp:hyperlink id="hypURL" runat="server" navigateurl="<%# DataBinder.Eval(Container.DataItem,"ItemID", "~/InputScreen/PlayerRelationship.aspx?id={0}") %>">
                       Text='<%# Bind("Ime") %>'></asp:hyperlink>
                   </itemtemplate>
               </asp:templatefield>
Posted
Updated 13-Aug-10 5:28am
v7

1 solution

The tilda, ~, does not get resolved in a string constant during the formatting of the string
 
Share this answer
 

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