how to use aspnet_client for js

J

Jeff User

Hi all
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.

Is there any documentation on how to do this anywhere?

Thanks.
Jeff
 
A

Alexey Smirnov

Hi all
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.

Is there any documentation on how to do this anywhere?

Thanks.
Jeff

http://msdn2.microsoft.com/en-us/library/aa719700(VS.71).aspx
 
A

Alexey Smirnov


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
 
M

Mark Rae

Unfortunately, 2.0 is not an option at this time.

Hmm - things evolve, new versions appear...

2.0 was released over 18 months ago...

3.0 is already out (OK, it's not really an upgrade, more of an extension,
but still...)

3.5 is already in beta...

Either you keep up, or you fall behind...
 
A

Alexey Smirnov

Thanks
Unfortunately, 2.0 is not an option at this time.

jeff- Hide quoted text -

- Show quoted text -

well, then read the article from my first answer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top