Jquery and session variables in asp.net RRS feed

  • Question

  • User-909867351 posted


    My question is : How can I load one file regarding session value?

    I'm using fullcalendar and I need to load one XML file, but the XML file I need to load depends the user that is logged in. I save the user in session variable and I need the code:

    events: function (start, end, timezone, callback) {
                        cache: false,
                        url: 'agenda_clientes.xml',
                        dataType: 'xml',
                        data: {                        
                            start: start.unix(),
                            end: end.unix()

    the url file has to change according to the session variable. In this case i'm reading the agenda_clientes.xml, but if the user is different the url I have to load may be admin.xml

    Thank you



    Monday, July 22, 2019 10:51 AM


  • User475983607 posted

    We are missing a lot of information. 

    Are you trying to change the url according to a Session value?  ASP.NET Web Forms

    url: 'agenda_clientes' + <%=Session["user"]%> + '.xml',


    url: 'agenda_clientes' + @Session["user"] + '.xml',

    The data attribute is not valid because the code is requesting an XML file...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 22, 2019 11:02 AM