4
Oct/070
Oct/070
asp:HyperLink With Dynamic URLs
Much headache to get this to work. The following format will allow dynamic url with multiple variables in the query string in a itemtemplate.
<asp:HyperLink ID=”HyperLink1″ runat=”server”
Text=”Link Text”
Target=”_blank”
NavigateUrl=’<%# “~/mypage.aspx?var1=”+ Eval(“Var1″) + “&var2=” + Eval(“var2″)%>’>
</asp:HyperLink>
NOTE: Make sure any literal between <%# and %> uses double quotes NOT single quotes.
Comments (0)
Trackbacks (0) ( subscribe to comments on this post )
No comments yet.
Leave a comment
No trackbacks yet.