开发者

Adding a separate file for all website content [duplicate]

This question already has an answer here: Getting text from the Resource file in asp.net 4 (1 answer) Closed 8 years ago. 开发者_StackOverflow中文版

Thank you in advance for your help.

I have a website in asp.net and c#, i need to have it that all text that is in the site should be taken from a separate file, so it can be changed easily if needed, and for other similar reason.

Hope this id clear.

What is the best way of doing such a thing?


You'll want to read up on resource files, globalisation & localisation. There is a binding expression, similar to <%# that can read the values from the resource files.

This should get you started: http://msdn.microsoft.com/en-gb/library/fw69ke6f.aspx

Simon


I would be tempted to keep your solution 'un-compiled' and then use resource files.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜