How to create labels, headings and field headings. Content Management in ASP.Net 3.5?

I have a development requirement when I need to make all content manageable in an ASP.Net 3.5 application. We do not follow the MVC model, although our application is based on 3 levels. Also, we do not use any open source infrastructure, such as DNN.

I like to know how we can specifically create field labels , forms and field headings without using any frameworks.

I would welcome all technical and innvotive ideas on this. Thanks

+4
source share
1 answer

Have you considered using resource files and using the meta:resourcekey attribute for your controls?

 <asp:Label Runat="server" meta:resourcekey="MyLabel" /> 

and in the resource file

 MyLabel.Text = "My Label Text" 

In addition, if you want to save information on a different medium, you can create a custom resource provider ( http://msdn.microsoft.com/en-us/library/aa905797.aspx )

+1
source

Source: https://habr.com/ru/post/1432315/


All Articles