Re: store external javascript files in aspnet_client subfolder
- From: Alexey Smirnov <alexey.smirnov@xxxxxxxxx>
- Date: 27 May 2007 00:38:52 -0700
On May 24, 11:19 pm, deep...@xxxxxxxxx wrote:
I'm building a composite control for ASP.NET 1.1 that relies on
external javascript (.js) files. I've noticed the Microsoft custom web
controls make use of the C:\Inetpub\wwwroot\aspnet_client subfolder to
store common javascript files and other include common files. I've
also noticed some third-party control vendors have successfully made
use of this folder by including their own subfolder under
aspnet_client and dumping .js files in there.
I'd like to know if there is a tool that be used to map my includes to
point to this directory so when my control performs a <script
language='javascript' src='myscript.js'> it resolves to the common
subfolder under aspnet_client.
It seems like Mirosoft would provide a standardized approach to
storing common .js files for use in custom web controls, so I'm
guessing I just haven't found the documentation on how to utilize
this. Thanks.
Note: In ASP.NET 2.0 you can take advantage of web resources. Web
resources allow resources to be embedded in an assembly and are
retrieved through the web resources handler. The following sample
shows use of an embedded JavaScript file and use of the
Page.ClientScript.RegisterClientScriptResource method.
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/extensibility.aspx
.
- References:
- Prev by Date: Re: store external javascript files in aspnet_client subfolder
- Next by Date: RE: Formview Sycn
- Previous by thread: Re: store external javascript files in aspnet_client subfolder
- Next by thread: RE: GetCellValue for Visual Baisc?
- Index(es):
Relevant Pages
|