c# - How to pick up AppSettings from Web.Config into NavigateURL property on ASPX menu control? -


need pick appsettings key web.config navigateurl property on aspx menu control: applied follows :

<asp:menuitem navigateurl="http://<%$appsettings:urlkey%>/index1.aspx"                                     text="index page" value="index page"></asp:menuitem> 

where

the above code not working! plz help

you can't use server tags <%= ... %> syntax within asp.net server control element declaration. should set in codebehind instead.

also runat="server" ?

finally check out this answer might more.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -