Sample code question

Sep 18, 2009 at 3:23 AM

When I read the sample solution, I meet code like this :

<asp:Literal runat="server" Text="<%$ Resources:ProductsList %>" />

( @ /Views/Products/List )

The code above just present string "ProductList", why?

And what the meaning of "<%$ %>" ?

Thx!

Coordinator
Sep 18, 2009 at 7:56 AM

"<%$ %>" is used for translation. It fetches a string resource from a resource file and uses this as the caption.