Saeid
Saeid

Reputation: 13582

Run jquery scripts on client side with a HttpHandler (by Implement IHttpHandler)

I have a User Control that need load some jquery scripts in client side, at this time I handle it like this:

protected override void OnPreRender(EventArgs e) {
Page.ClientScript.RegisterClientScriptInclude("jQueryScriptHeader", 
Page.ClientScript.GetWebResourceUrl(this.GetType(), "MyNamespace.js.jquery-
1.6.4.min.js"));


Page.ClientScript.RegisterClientScriptInclude("MyScript", 
Page.ClientScript.GetWebResourceUrl(this.GetType(), "MyNamespace.js.MyScript.js"));
        }

Also I have a new script that has jQuery.Post() and I think for fire it need a HttpHaandler

How can I do All this with HttpHandler?

Upvotes: 0

Views: 302

Answers (1)

user1055270
user1055270

Reputation:

Maybe this can be useful this very like as your problem an have a complete step by step solution:

use return value of json in jquery

Upvotes: 1

Related Questions