I have a GridView where I use HyperlinkField. The thing is I need to encrypt the userID I put into the query string so I am trying to call code render Encrypt function to encrypt. But the problem is that Encrypt never gets executed. What is wrong:. Here is my code:
Code:
<asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="EnterCustomer.aspx?CustomerID=<%= Encode({0}) %>"
DataTextField="CompanyName" HeaderText="Customer Name" Text="Name" />