Perhaps this is laziness on my part, but in the same way I can reference a connection string from my web.config using <%$ ConnectionStrings:con %>
, I'd like to do similar referencing an Application variable in one of my select parameters. Something like:
<asp:Parameter Name="AppVal" Type="Int32" DefaultValue="<% Application['MyVal'] %>" />
Is this stupid of me? Should I just shut up and set the parameter value in the codebehind? I've been Googling for hours trying to describe the different ways to leverage the angle-bracket-percent-sign style tags in ASP.Net and have only found inline code and code render blocks (<%=), as well as data binding (<%#). What's this <%$ all about, and are there others I'm missing?