Intersoft WebCombo Documentation
ScriptDirectory Property
See Also  Send Feedback
ISNet.WebUI.WebCombo Namespace > LayoutSet Class : ScriptDirectory Property






This property is available for backward compabitility with V2.x only. This property is linked to WebCombo.ScriptDirectory directly.

This property is available for backward compabitility with V2.x only. This property is linked to WebCombo.ScriptDirectory directly.

Syntax

Visual Basic (Declaration) 
<ISNet.Serialization.XmlSerializableAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<DescriptionAttribute("This property is available for backward compabitility with V2.x only. This property is linked to WebCombo.ScriptDirectory directly.")>
<DefaultValueAttribute()>
<ISNet.PersistLayoutAttribute(False)>
<NotifyParentPropertyAttribute(True)>
Public Property ScriptDirectory As String
Visual Basic (Usage)Copy Code
Dim instance As LayoutSet
Dim value As String
 
instance.ScriptDirectory = value
 
value = instance.ScriptDirectory
C# 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("This property is available for backward compabitility with V2.x only. This property is linked to WebCombo.ScriptDirectory directly.")]
[DefaultValueAttribute()]
[ISNet.PersistLayoutAttribute(false)]
[NotifyParentPropertyAttribute(true)]
public string ScriptDirectory {get; set;}
Delphi 
public read-write property ScriptDirectory: String; 
JScript 
ISNet.Serialization.XmlSerializableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
DescriptionAttribute("This property is available for backward compabitility with V2.x only. This property is linked to WebCombo.ScriptDirectory directly.")
DefaultValueAttribute()
ISNet.PersistLayoutAttribute()
NotifyParentPropertyAttribute()
public function get,set ScriptDirectory : String
Managed Extensions for C++ 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("This property is available for backward compabitility with V2.x only. This property is linked to WebCombo.ScriptDirectory directly.")]
[DefaultValueAttribute()]
[ISNet.PersistLayoutAttribute(false)]
[NotifyParentPropertyAttribute(true)]
public: __property string* get_ScriptDirectory();
public: __property void set_ScriptDirectory( 
   string* value
);
C++/CLI 
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[DescriptionAttribute("This property is available for backward compabitility with V2.x only. This property is linked to WebCombo.ScriptDirectory directly.")]
[DefaultValueAttribute()]
[ISNet.PersistLayoutAttribute(false)]
[NotifyParentPropertyAttribute(true)]
public:
property String^ ScriptDirectory {
   String^ get();
   void set (    String^ value);
}

Remarks

In previous versions, resources of product such as scripts are stored in ScriptDirectory. For example, WebCombo's resources are stored in /CommonLibrary/WebCombo/V4_0_7200.

Since WebCombo.NET v5.0 uses a new SmartWebResources Framework, the resources in script directory are now embedded into .NET assembly. Unlike ASP.NET’s built-in Web Resources which embeds client resources in main assembly, SmartWebResources stores each product’s client resources in separate assembly. This enables flexible update (maintenance) to the client resources without has to rebuild the main server-side assembly.

With SmartWebResources enabled, you no longer need to aware what you should do to configure the client scripts virtual directory, or where to locate/store it. You simply ensure that the resources assemblies are in the Bin folder of your application. For more information, you can read How-to: Configure SmartWebResources in a web application.

The "Auto" mode of SmartWebResources will attempt to use SmartWebResources whenever possible. When it detects invalid configuration or usage of product that does not support SmartWebResources, it will automatically fallback to traditional physical client resources approach. For instance, if ScriptDirectory or SharedScriptDirectory has been changed (not default), SmartWebResources detects whether an existing web application was configured to use specific script directory other than the default (for best compatibility). Let's say if the ScriptDirectory is set to “~/SomeOtherFolders” in the control tag or in web.config, then SmartWebResources will not attempt to enable itself.  

If ScriptDirectory is customized, but ImagesDirectory is using default value (not customized), the SmartWebResources will fallback to ResourceOnly mode. That means, images and other client resources will still be handled by SmartWebResources. For more information, please read the SmartWebResources™ modes.

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.