hi Chris,
IIS script folder ? Are you serious. You want permission to write to a
clients IIS script folder. Not very nice. I'm not sure your clients will
like that, if you do find a way to get it there. I'm not going to like this
at all if a custom control i purchased dumped their script files into my IIS
script folder, needless to say giving them read/write permissions to my IIS
script folder in the first place ;P
Quick copy and paste from the docs :
Deploying a Script File
The script block emitted by a script-enabled control can contain inline
script, or it can provide the location of a script file. Both cases are
shown in the sample discussed earlier in this topic. If the block provides
the location of a script file, you must deploy the script file in such a
manner that it can be used from other applications and does not create
versioning conflicts. In the sample, the script file is placed in a
subdirectory named script in the Web application's virtual rooted directory.
[C#]
// Provides the location of the script file.
location = Page.Request.ApplicationPath + "/script/";
[Visual Basic]
' Provides the location of the script file.
location = Page.Request.ApplicationPath & "/script/"
While this location works for the sample, the recommended location of a
script file that is intended for use by other applications is as follows.
/aspnet_client/<your assembly name>/<your assembly version>/
The directory aspnet_client is a virtual rooted Web application directory
that is created on your computer when you install the .NET Framework SDK or
Visual Studio .NET. For example, the script files that ship with ASP.NET are
in the following location.
/aspnet_client/system_web/<version of SDK installed>
If you have multiple versions of the SDK installed, you will see multiple
subdirectories under aspnet_client/system_web. Because a control library is
tied to a specific version of the script file, the recommended deployment
pattern allows different versions of a control library to run side by side.
Note also that one aspnet_client directory is created for each Web site
hosted on the computer. Generally a server hosts only one Web site. However,
more than one site is permissible, and multiple sites lead to multiple
copies of the aspnet_client directory.
Chris McKenzie said:
I have a server control that I've developed that depends on some pretty
sophisticated and lengthy javascript. I have the javascript as part of the
Server Control Project. Can anyone point me to any resources telling me how
to build a deployment project for such a control that will place the
javascript in the IIS Script folder?
Thanks,
Chris