can't get RegisterStartupScript with src=path\filename to work
-
this.page.ClientScript.RegisterStartupScript(this.GetType(), "cpjs", "");
and I have all the javascript functions I need in wcpjs.js. However I get object not found errors. If I replace the src=" ...." part with a test function like "function test(){alert('i hate javascript');}" then no problem no error. I have tried using src=\" differentpath\\wcpjs.js\" but to no avail. Still get errors. Have spent a full day on this now and am :confused::mad: X| If anyone can answer this - when I get rich I'll send you some big bucks.
-
this.page.ClientScript.RegisterStartupScript(this.GetType(), "cpjs", "");
and I have all the javascript functions I need in wcpjs.js. However I get object not found errors. If I replace the src=" ...." part with a test function like "function test(){alert('i hate javascript');}" then no problem no error. I have tried using src=\" differentpath\\wcpjs.js\" but to no avail. Still get errors. Have spent a full day on this now and am :confused::mad: X| If anyone can answer this - when I get rich I'll send you some big bucks.