an external js file is not going to run any ASP commands. Again, you would need to define it as I stated above.