Hi,
if you are not using the latest version you have to use a optional
argument for the AjaxMethod attribute, the
AjaxPro.HttpSessionRequriement.ReadWrite:
[AjaxPro.AjaxMethod(AjaxPro.HttpSessionRequriement.ReadWrite)]
public string MyMethod()
{
DataSet ds = (DataSet)HttpContext.Current.Session["DS"];
}
Sorry, VB.NET is hard to write for me... but it would be similar, of course.
Regards,
Michael
On 6/21/06, Tanmaya kulkarni <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Am using ajaxpro.dll to call VB.Net functions in javascript.
>
> In page load, am adding dataset in
> System.Web.HttpContext.Current.Session as
> System.Web.HttpContext.Current.Session.Add("DS",ds)
>
> I want to use this dataset in the function am calling from javascript (say
> abc).
>
> However in function abc, I see that
> System.Web.HttpContext.Current.Session=nothing. Do I need
> to initialize the session explicitely somewhere?
>
> I cant figure out why this is happening..please help
>
> Thanks,
> Tanmaya
>
> >
>
>
>
>
>
--
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
-~----------~----~----~----~------~----~------~--~---