Re: store external javascript files in aspnet_client subfolder



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

.



Relevant Pages

  • Re: store external javascript files in aspnet_client subfolder
    ... I've noticed the Microsoft custom web ... store common javascript files and other include common files. ... use of this folder by including their own subfolder under ... storing common .js files for use in custom web controls, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: store external javascript files in aspnet_client subfolder
    ... I've noticed the Microsoft custom web ... store common javascript files and other include common files. ... use of this folder by including their own subfolder under ... storing common .js files for use in custom web controls, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: CPropertySheet/Page
    ... data structure Just went back and looked at my ... this common parent. ... where "CParent" stands for whatever your parent window is. ... are snatched out of the controls and stored in these variables, and in an OnSetActive, ...
    (microsoft.public.vc.mfc)
  • Re: Komponente umhängen
    ... > andere Komponente umändern möchte. ... Controls 5.0 und möchtest das ProgressBar von den Microsoft Windows Common ...
    (microsoft.public.de.vb)
  • Re: Checking if form values have changed between postbacks
    ... thinking you were looking to avoid roundtrip and even the notification if ... The controls would reflect the state ... > Yeh I was trying to avoid doing this in javascript... ... > "Hermit Dave" wrote: ...
    (microsoft.public.dotnet.framework.aspnet)