开发者

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

开发者 https://www.devze.com 2023-02-16 15:46 出处:网络
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.

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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消