开发者

How to store "<" in an XML attribute for configuration section?>

I'm using a custom configuration section in my web.config file for ASP.NET

One of my fields is: &l开发者_JAVA百科t;add percent="5" label="<5%" />

As you can see in label I have a "<" sign - this is causing errors. How can I store this value there without having compile issue?

Thanks!


The escape sequence for this character in XML is

&lt;

The lt stands for "less than"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜