I have created a class library DLL to be referenced from any third-party application and it contains only one function that calls a JavaScript to read a local file and returns s
You can get the page instance from within the HttpContext
like this:
Page page = (Page)(HttpContext.Current.Handler);
page.ClientScript.RegisterClientScriptBlock(...);
This is C# but should be easy to convert to VB.NET
as well.
Edit: here is the VB syntax:
Dim page As Page = HttpContext.Current.Handler
page.ClientScript.RegisterClientScriptBlock(...)