cancel
Showing results for 
Search instead for 
Did you mean: 

AJAX enabled?

MikeBroughton
Member

I am wanting to enable AJAX on my website - I have uploaded the ajaxcontroltoolkit.dll into the BIN folder which should mean everything just 'works' - but it doesn't.

 

Anyone else done this or know how to get it going?

 

(Background - I have the website working fine on my development machine - VS2005 etc - I have uploaded the .Net toolkit for versions 2.0 and 3.5 of the .Net framework, but neither seem to work)

 

Thanks,

 

Mike

1 ACCEPTED SOLUTION

Accepted Solutions

MikeBroughton
Member

All,

 

It appears to be a CACHE issue - got home tonight and all works fine!  Not sure what went wrong but something did!  (UNLESS something has been done in the interim - admin - can you confirm or deny please?)

 

I can report that you MUST use the .Net2.0 ajax toolkit (3.5 fails), and by adding this to the ASPX page the function fires correctly.

 

 string callbackReference = Page.ClientScript.GetCallbackEventReference(this, "arg", "serverHtmlReturn", "context", "serverHtmlError", true);

Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "htmlCall", "function serverHtmlRequest(arg,context){" + callbackReference + "; };", true);

 

The Javascript required to call this is simply

  

serverHtmlRequest(id, 2);

 

Where serverHtmlRequest is the name of the function you declare in the ASPX page.

 

You must remember to publish the AJAX toolkit in the bin (lowercase) directory - if you do this it all appears to work.

 

Mike

View solution in original post

1 REPLY 1

MikeBroughton
Member

All,

 

It appears to be a CACHE issue - got home tonight and all works fine!  Not sure what went wrong but something did!  (UNLESS something has been done in the interim - admin - can you confirm or deny please?)

 

I can report that you MUST use the .Net2.0 ajax toolkit (3.5 fails), and by adding this to the ASPX page the function fires correctly.

 

 string callbackReference = Page.ClientScript.GetCallbackEventReference(this, "arg", "serverHtmlReturn", "context", "serverHtmlError", true);

Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "htmlCall", "function serverHtmlRequest(arg,context){" + callbackReference + "; };", true);

 

The Javascript required to call this is simply

  

serverHtmlRequest(id, 2);

 

Where serverHtmlRequest is the name of the function you declare in the ASPX page.

 

You must remember to publish the AJAX toolkit in the bin (lowercase) directory - if you do this it all appears to work.

 

Mike