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 -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -