Sorry, the second value you added (true) is for internal asyncrouns
call which is not yet supported 100%. I forgot to remove the attribute
constructor, so please remove this... :(
Use the second one and on the client call the AjaxMethod with a
callback function, this will be asyncrounus.
Regards,
Michael
On 5/16/06, Michael Albertin <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have a question regarding using the SessionState by calling a method
> asynchronous. There are a lot of answered questions about SessionState
> so I have managed to write the following code:
>
> [AjaxMethod(HttpSessionStateRequirement.ReadWrite, true)]
> public void AccessSessionValue()
> {
> object o = HttpContext.Current.Session["sessionKey"];
> }
>
> In this case the Session is always not available/null. Is this not
> possbile or what have I missed? Calling the method normally works fine:
>
> [AjaxMethod(HttpSessionStateRequirement.ReadWrite)]
> public void AccessSessionValue()
> {
> object o = HttpContext.Current.Session["sessionKey"];
> }
>
> Can anybody give me a hint?
>
> Thanks and greetings
> Michael
>
>
> >
>
--
Best regards | Schöne Grüße
Michael
Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer
http://weblogs.asp.net/mschwarz/
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
-~----------~----~----~----~------~----~------~--~---