Hi,

use the AjaxPro.IContextInitializer interface to get the HttpContext:

public class Class1 : AjaxPro.IContextInitializer
{
    private HttpContext context = null;

    public void InitializeContext(HttpContext context)
    {
        this.context = context;
    }

    [AjaxPro.AjaxMethod(true)]
    public string GetRootPath()
    {
        return this.context.Server.MapPath("~/");
    }
}


Regards,
Michael




On 4/11/06, Mello <[EMAIL PROTECTED]> wrote:
>
> How can i access to cache object while i use the [AjaxMethod(true)]?
>
> Thank you
>
>
> >
>


--
Kind regards,
Michael Schwarz

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to