开发者

resource file naming convention for user control in .net

开发者 https://www.devze.com 2023-02-22 16:31 出处:网络
Please advice the naming convention for making resource file for a user contr开发者_开发问答ol.

Please advice the naming convention for making resource file for a user contr开发者_开发问答ol.

For ex lets say my user control name is Footer.ascx

then what should be the name of its .resx file?

Thanks


For Winforms application, when you build UserControl or new Form and switch Localizable property to true, new .resx file will be generated with name exactly the same as visual control. That is for Form1, .resx file will be named Form1.resx, for UserControl1 it would be named UserControl1.resx.
Obviously if you want to follow that pattern your Footer control should have resource file named Footer.resx.


In DotNetNuke, if the control's named "Control1.ascx", then the resource file is "Control1.resx".

0

精彩评论

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