Hello. I am making a DNN Module with Module Creator. I want to call a JavaScript function from the CodeBehind.
I added DnnJsInclude in the ascx file. I also wrote this line ClientScript.RegisterStartupScript(sender.GetType(), "", "function_name();", true); in the ascx.cs file.
VisualStudio said that ClientScript doesn´t exits in current context.
How can I fix it?