Dynamically create JS file using ASP.net Handler
<p>I have many clients I want to give them scripts so I want to Create JS file based on their Cusotmer ID.
So I can return and it directly execute on customer side.
Client can be anyone either PHP,Html, ASP.net</p>

<p><strong>Problem is when i browse this link it give me JS string but on customer side this script is not executing like for testing I put alert this alert is not showing on customer side</strong></p>

<hr>

<p>Customer</p>

<pre><code>&lt;head&gt;
    &lt;script src="http://localhost:12604/JSCreator/Handler.ashx?CustomerID=123" type="text/javascript"&gt;&lt;/script&gt;
    &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
</code></pre>

<hr>

<p>Handler file</p>

<pre><code>public class Handler : IHttpHandler
{
    public void ProcessRequest(HttpContext context)
    {
        string CustomerId = context.Request["CustomerId"].ToString();
        string jscontent = JSFileWriter.GetJS(CustomerId); // This function will return my custom js string

        context.Response.ContentType = "text/javascript";
        context.Response.Write(jscontent);
    }

    public bool IsReusable
    {
        get
        {
            return false;
        }
    }
}
</code></pre>
