I have a function on my BasePage called GetEncodedURL(), which takes a URL(string) and a string[] of args, and returns a URL Encoded String.
In one of my APSX pages I have two asp:Hyperlink controls.
The first one is within a gridview, with the NavigateURL property set to:
'<%# GetEncodedUrl(Resources.Links.ViewAccountDetails, "accountID", Convert.ToString(Eval("AccountOID"))) %>'
This works fine. The GetEncodedURL function gets called, and the link works as expected.
The problem happens when I try to do something similar with the second asp:hyperlink control. From what I can see, the only difference is that this one is NOT within a gridview. It's NavigateURL property looks like this:
'<%# GetEncodedUrl(Resources.Links.AddKeyAccounts, "AccountType", Enum.InternationalAccount.ToString())%>'
The function doesn't get called, and the link just renders as plain text.
Any idea why the function isn't being called with the second example?
In one of my APSX pages I have two asp:Hyperlink controls.
The first one is within a gridview, with the NavigateURL property set to:
'<%# GetEncodedUrl(Resources.Links.ViewAccountDetails, "accountID", Convert.ToString(Eval("AccountOID"))) %>'
This works fine. The GetEncodedURL function gets called, and the link works as expected.
The problem happens when I try to do something similar with the second asp:hyperlink control. From what I can see, the only difference is that this one is NOT within a gridview. It's NavigateURL property looks like this:
'<%# GetEncodedUrl(Resources.Links.AddKeyAccounts, "AccountType", Enum.InternationalAccount.ToString())%>'
The function doesn't get called, and the link just renders as plain text.
Any idea why the function isn't being called with the second example?