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'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top