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
Post a Comment