Hi @Jaak Ivask ,
The error is: "The server tag is not well formed."
The problem is IntelliSense, "<" will sense the nearest ">", so it will cause confusion.
Maybe you can try the following code:
NavigateUrl='<%#String.Format("https://www.company.com/et/orders/{0}/reminder",((Order)Container.DataItem).Parent.OrderGuid) %>'
You could not use double quotes within double quotes so use combination of single and double quotes.
Visible='<%#(int)Eval("PaymentStatusId") == (int)PaymentStatusEnum.PendingOK ? true : false%>'
Your full codes need to be like this:
<asp:TemplateField>
<ItemTemplate>
<asp:HyperLink ID="hyperlink1" runat="server" Text="Send reminder" Target="_new" NavigateUrl='<%#String.Format("https://www.company.com/et/orders/{0}/reminder",((Order)Container.DataItem).Parent.OrderGuid) %>' Visible='<%#(int)Eval("PaymentStatusId") == (int)PaymentStatusEnum.PendingOK ? true : false%>' ></asp:HyperLink>
</ItemTemplate>
</asp:TemplateField>
Best regards,
Yijing Sun
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.