how do I add additional path to Asp.Net expressions?

  • Thread starter Thread starter Coaster
  • Start date Start date
C

Coaster

I 'm trying to do something like this but it doesn't come out correctly on
the browser side.

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl
%>/MyPage.aspx" Text="View My Page"></asp:HyperLink>



I've tried several variations of quotes to no avail



Any help

thanks
 
You must load all the parameter value from code

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl %>"
Text="View My Page"></asp:HyperLink>

and if you want to add something, then:

<asp:HyperLink runat="server" NavigateUrl="<%$ AppSettings: myUrl +
"/MyPage.aspx" %>" Text="View My Page"></asp:HyperLink>

Regards,

Lukas Holota
 
actually I spoke too soon. It throws an exception saying it cannot find the
key 'AppSettings: myUrl + '/MyPage.aspx'
 
Back
Top