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






Gets or sets the directory where all required scripts for the control are stored.

Syntax

Visual Basic (Declaration) 
<BindableAttribute(Bindable=True, Direction=BindingDirection.OneWay)>
<CategoryAttribute("Client Script Directory")>
<DefaultValueAttribute()>
<ISNet.Serialization.XmlSerializableAttribute()>
Public Overrides Property ScriptDirectory As String
Visual Basic (Usage)Copy Code
Dim instance As WebGrid
Dim value As String
 
instance.ScriptDirectory = value
 
value = instance.ScriptDirectory
C# 
[BindableAttribute(Bindable=true, Direction=BindingDirection.OneWay)]
[CategoryAttribute("Client Script Directory")]
[DefaultValueAttribute()]
[ISNet.Serialization.XmlSerializableAttribute()]
public override string ScriptDirectory {get; set;}
Delphi 
public read-write property ScriptDirectory: String; override; 
JScript 
BindableAttribute(Bindable=, Direction=BindingDirection.OneWay)
CategoryAttribute("Client Script Directory")
DefaultValueAttribute()
ISNet.Serialization.XmlSerializableAttribute()
public override function get,set ScriptDirectory : String
Managed Extensions for C++ 
[BindableAttribute(Bindable=true, Direction=BindingDirection.OneWay)]
[CategoryAttribute("Client Script Directory")]
[DefaultValueAttribute()]
[ISNet.Serialization.XmlSerializableAttribute()]
public: __property string* get_ScriptDirectory() override;
public: __property void set_ScriptDirectory( 
   string* value
) override;
C++/CLI 
[BindableAttribute(Bindable=true, Direction=BindingDirection.OneWay)]
[CategoryAttribute("Client Script Directory")]
[DefaultValueAttribute()]
[ISNet.Serialization.XmlSerializableAttribute()]
public:
property String^ ScriptDirectory {
   String^ get() override;
   void set (    String^ value) override;
}

Example

 

Remarks

This property shows you the path where all required scripts for the control are stored. By default, all required scripts for the control are stored in CommonLibrary folder ([Program Files]Intersoft Solutions/CommonLibrary). Users can use this property to customized the path of ScriptDirectory. Developers can easily deploy web applications along with Intersoft's products by copying only "CommonLibrary" folder to the production server. The CommonLibrary need to be mapped as IIS Virtual Directory in production server.

In WebGrid.NET V5.0 the required scripts and images for the control at runtime are embedded in single assembly of WebGrid's SmartWebResources. By default, Intersoft 2007 product platform has the SmartWebResources set to Automatic mode. This mode mode ensures compatibility with existing web application when developers migrated to 2007 platform, while at the same time attempting to utilize SmartWebResources in new web application whenever possible.

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

Reference

WebGrid Class
WebGrid Members

Tasks

How-to: Set ScriptDirectory and SharedScriptDirectory
How-to: Configure SmartWebResources in a new web application
How-to: Disable SmartWebResources for Localization's language files
FAQ: Does SmartWebResources feature automatically enabled in WebGrid.NET Enterprise 5.0?
FAQ: Briefly, what are the files included in WebGrid SmartWebResources Assembly?

Concepts

Hassle-free deployment through SmartWebResources™ technology

Other Resources

About Localization Files

Other Resources

SmartWebResources modes

©2012 Intersoft Solutions Corp. All Rights Reserved.