Intersoft WebGrid Documentation
How-to: Disable SmartWebResources for Localization's language files
See Also Send comments on this topic.

Glossary Item Box

You can specifically disable the SmartWebResources for language files only without affecting SmartWebResources for scripts and other client resources.

To disable the SmartWebResources for language files, set UseWebResources of TextSettings object to false. When disabled, the language file will be retrieved using the classic physical path through IIS virtual directory. For instance, http://localhost/CommonLibrary/WebGrid/V5_0_7200/Localization/default.xml
Sample codes in C#:
WebGrid1.LayoutSettings.TextSettings.UseWebResources = false;
There are several scenarios where SmartWebResources need to be disabled for localization:
If you want to change only specific item of text for webpage-specific scenario, you can override the text item by adding the entry in the TextItems collection of a WebGrid instance. This enables WebGrid to use SmartWebResources for the selected language and use the overridden TextItem that you have specified.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.