I'm trying to use variable from back end. actually i'm trying to create copy the solution from the existing one. In the old solution it works fine but in new solution I am unable to access the code behind variable.
Here is my code:
public static string DefaultURL { get { return Global.URL; } }
here is aspx page
<a href="<%= DefaultURL %>">
<img src="../Content/img/logohome.png" class="img-responsive "
style="width: 111px;" />
</a>
But the variable DefaultURL
gives an error like "The name DefaultURL does not exist in the current context."