NavigateUrl='<%=CodeBehindFunction %>' does not work
-
Basically a have a link set in the appsettings section of the web.config file. I want to read the value from the aspx page if possible without even creating code behind function.
<Home<
This fails as it literally points to 'http://localhost/...<%25=System.Configuration.ConfigurationManager.AppSettings...'. However,
<
<<%=System.Configuration.ConfigurationManager.AppSettings("AppsHomePage").ToString%>
<works as expected displaying the value. How do I set the property with in the html of an aspx page? I know I can set the value in the form_load event but just curious how you do it from the html. Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)
-
Basically a have a link set in the appsettings section of the web.config file. I want to read the value from the aspx page if possible without even creating code behind function.
<Home<
This fails as it literally points to 'http://localhost/...<%25=System.Configuration.ConfigurationManager.AppSettings...'. However,
<
<<%=System.Configuration.ConfigurationManager.AppSettings("AppsHomePage").ToString%>
<works as expected displaying the value. How do I set the property with in the html of an aspx page? I know I can set the value in the form_load event but just curious how you do it from the html. Michael
I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)
I haven't done any ASP.NET. However, what happens if you take the Runat="Server" attribute out? It seems to me that is the main difference between the two examples. Regards Andy