Intersoft WebGrid Documentation
UseWebResources Property
See Also  Example Send Feedback
ISNet.WebUI.WebGrid Namespace > TextSettings Class : UseWebResources Property






Determines whether the language xml files should be retrieved from web resources whenever possible.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Determines whether the language xml files should be retrieved from web resources whenever possible.")>
<ISNet.Serialization.XmlSerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<ISNet.Serialization.BinarySerializableAttribute()>
<DefaultValueAttribute()>
Public Property UseWebResources As Boolean
Visual Basic (Usage)Copy Code
Dim instance As TextSettings
Dim value As Boolean
 
instance.UseWebResources = value
 
value = instance.UseWebResources
C# 
[DescriptionAttribute("Determines whether the language xml files should be retrieved from web resources whenever possible.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
public bool UseWebResources {get; set;}
Delphi 
public read-write property UseWebResources: Boolean; 
JScript 
DescriptionAttribute("Determines whether the language xml files should be retrieved from web resources whenever possible.")
ISNet.Serialization.XmlSerializableAttribute()
NotifyParentPropertyAttribute()
ISNet.Serialization.BinarySerializableAttribute()
DefaultValueAttribute()
public function get,set UseWebResources : boolean
Managed Extensions for C++ 
[DescriptionAttribute("Determines whether the language xml files should be retrieved from web resources whenever possible.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
public: __property bool get_UseWebResources();
public: __property void set_UseWebResources( 
   bool value
);
C++/CLI 
[DescriptionAttribute("Determines whether the language xml files should be retrieved from web resources whenever possible.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.BinarySerializableAttribute()]
[DefaultValueAttribute()]
public:
property bool UseWebResources {
   bool get();
   void set (    bool value);
}

Example

 

The sample code to disable SmartWebResources programatically.
C#Copy Code
WebGrid1.LayoutSettings.TextSettings.UseWebResources = false;

Remarks

If you want to disable the SmartWebResources for language files, . 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 

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.