Last post May 19, 2005 02:02 PM by PLBlum
May 19, 2005 11:22 AM|Salameh|LINK
i know asp.net 2 has the functionality to install the js file on the clients machine. What do the the asp.net 1.1 people do. There are plenty of sleak controls that don't require the control to distribute there js file separately.
Can someone talk about the options i have. I ask this question before but didn't get any good options back.
How do the sleak asp .net 1.1 controls do it.
May 19, 2005 02:02 PM|PLBlum|LINK
ASP.NET doesn't have any capability to install a js file on the client's machine. It doesn't matter what version of ASP.NET. Its the browser that requests the js file from the server. The server gets that file (it may ask ASP.NET to create the bytes of that
file or it may get it from the file system.) The browser puts the result in a cache. The browser user determines if it is kept in the cache.
The differences between ASP.NET 1.x and 2.0 are where you can locate the script file.
HTTPHandler to retrieve the script text from your assemblies resource. (That means you can stuff the text of the scripts into the assembly as a resource in any verson. Only ASP.NET 2.0 has built in an HTTPHandler to retrieve it for you.)
My commercial applications are written in ASP.NET 1.0 and definely keep the script files as a separate file. Its a little more complex for users. So I have them copy a folder fully setup into their web application's root folder or the \aspnet_client folder.
Once its located inside the folder of the web application, XCOPY deployment of the web application will include the script files along with all of the web forms and your assembly (in the \bin folder). The only thing they have to remember is to copy the folder
into the web application when they first start using my controls.