Tech Blog Using technology to help your business

4Oct/073

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.

Other methods for handling dynamic NavigateUrl

Comments (3) Trackbacks (0)
  1. Best Site Good Work http://ijukalajo.de.tl sky angels preteen If you think she’s actually really enjoying this, you must REALLY not know when a woman is faking. I mean look, she’s not even ever really wet. And if you think the guy is doing a great job then wow, I feel sorry for you because you must have never had a guy be good.

  2. Who do you work for? http://oyuludedui.de.tl illegal bbs free Oh my goodness, I click favorite as soon as I saw that butt. I can’t believe it… Brazilian girls are the best in the world for sure.

  3. This is great loved it worked great!


Leave a comment

No trackbacks yet.

Plugin from the creators of Brindes :: More at Plulz Wordpress Plugins