I\'m working on asp.net (C#) project which include some page files (aspx, aspx.cs) and some only (.cs) file. I\'m able to access JavaScript/jQuery functions from page files
you can try to write to a response stream directly and output
Response.Write("");
Regards, Szymon