Skip to content Skip to sidebar Skip to footer

How Can I Retrieve Jsondata From Asp.net And Send It To Jquery? (implementing Fullcalendar)

I'm trying to get JSON-data into a jQuery variable using ASP.NET (not MVC): $(document).ready(function () { $('#calendar').fullCalendar({ events: GetEvents(start, end)

Solution 1:

Instead of calling Session directly use HttpContext.Current.Session, or make it a static property in your page:

private static HttpSessionState MySession
{
  get
  {
    return HttpContext.Current.Session;
  }

  set
  {
    return HttpContext.Current.Session = value;
  }
}

Post a Comment for "How Can I Retrieve Jsondata From Asp.net And Send It To Jquery? (implementing Fullcalendar)"