In my ASPX page I’ve this:
<h3>
<asp:HyperLink runat="server"
NavigateUrl="<%$ Resources:Path, Article%>"
Text='<%# Eval("title") %>' />
</h3>
For the NavigateUrl attribute I want to specify an ID like
NavigateUrl="<%$ Resources:Path, Article%>?id=4"
But when I do that the expression is not precessed by the ASP parser.
How can I do that?
Don’t do this in markup. You have a server control here — give it an ID (say,
ID="NavigationLink", and then do something like this in your .cs file:Edit: I’m assuming that when you say
<%$ Resources:Path, Article%>that you’re trying to reference thePathandArticleentries in your resources file, but upon further reflection, it’s hard to tell exactly what you’re doing. Can you be more specific here?