I have the following two buttons:\[code\]<asp:Button ID="btnVote" runat="server" Text="Vote!" PostBackUrl="<%$RouteUrl:id=2, routename=Results%>"/><br /><asp:Button ID="btnResults" runat="server" Text="Results ->" OnClientClick="location.href='http://stackoverflow.com/questions/15793494/<%$RouteUrl:id=2, routename=Results%>'"/>\[/code\]The first \[code\]<%$ %>\[/code\] expands as intended, while the second (identical!) one gets used as typed ( = not expanded). I am very new to \[code\]ASP.NET\[/code\], coming from \[code\]PHP\[/code\], and this is from my learning/test site.
What am I doing wrong and how can I fix it?
What am I doing wrong and how can I fix it?