Ajax.dll causing problem?

Posted by Ramesh on Stack Overflow See other posts from Stack Overflow or by Ramesh
Published on 2009-10-05T09:55:32Z Indexed on 2010/06/15 12:02 UTC
Read the original article Hit count: 683

Filed under:
|

Hi all,

I am using Ajax.dll.I have registered the class using

Ajax.Utility.RegisterTypeForAjax(typeof(Default)) in page load.

I have written a function in the server side to return "Name",like

[Ajax.AjaxMethod(HttpSessionStateRequirement.ReadWrite)]
public string GetName()
{
return "Test";
}

and i accessed from the page like Default.GetName().

For first time its working fine.after leaving system idle for one hour if click any link, that throws error "default is undefined ".

Is there anyway to fix this issue?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about AJAX