python
python

Reputation: 2835

How to use the <%$ server code %> in Asp.net pages

I would like to know how to work with the

<%$  %> 

format in aspx pages, as I see that it can be used in all kind of formats to insert server side values to controls. How does its called? And where can I please read about how to use it, and what are the format options in all kind of controls.

Thanks.

Upvotes: 0

Views: 88

Answers (1)

Mikael &#214;stberg
Mikael &#214;stberg

Reputation: 17176

They are ASP.NET Expressions.

A very common usage is when using a resource file, like so

<asp:Label id="label1" runat="server" text="<%$ Resources: Messages, ThankYouLabel %>" />

Read more on them here: http://msdn.microsoft.com/en-us/library/d5bd1tad.aspx

Upvotes: 1

Related Questions