It is quite annoying to be working on a project. In addition, the interface must be internationalized in multiple languages, and the products and other data entered must be supported in multiple languages.
There is still a headache on the interface. Other direct resource source files can be implemented, and the column name of the gridview has encountered a problem. Now there are two solutions:
1. Use the backgroundCodeDynamic Column name modification:
Gridview1.columns [0]. headertext = localizationutility. gettext ("hdractive ");
Advantage: flexible, resource files can be reused. There is no limit on the location of resource files.
Disadvantage: it is complicated to overhead the column, and it is not convenient to match.
2. Bind resource files directly at the front-end
<Asp: boundfield headertext = "<% $ resources: labelresources, headercreatedate" %>
Datafield = "createdate" readonly = "true" sortexpression = "createdate"/>
Advantage: it is convenient to modify the column name and Resource Name.
Disadvantage: This method is only valid for resources on the current page. You must generate a resource file through the design interface of the page, tools/build local resource. I still don't know how this method can reuse multi-language resources. and my resource file is in another project.
PS: change the method as follows:
<Asp: templatefield>
<Headerstyle horizontalalign = "center" width = "150"/>
<Headertemplate>
<% = Localizationutility. gettext ("optionname") %>
</Headertemplate>
<Itemtemplate>
<% # Eval ("optionname") %>
</Itemtemplate>
</ASP: templatefield>
Use ASP. net. it is quite easy to implement multiple languages using the extjs framework in the previous project. miss. it may be better to implement multiple languages of the gridview. hope to know your advice.