Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. 'Sys' is undefined

'Sys' is undefined

Scheduled Pinned Locked Moved ASP.NET
csharphelpquestionjavascriptasp-net
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abubakarsb
    wrote on last edited by
    #1

    Hi Friends! I developed a website in asp.net using c#, I created a master page and using it in all other pages. I also have some javascript functions in content page but there is no AJAX control or any kind of control related to AJAX. But someimes, specially when I send user to 'Home' page from another page then I get this stupid javascript error 'Sys is undefined' but when I refresh the page then there is no error. If anyone of you knows about it please tell me how can I fix it? Waiting for your reply, Kind Regards, Abubakar

    U 1 Reply Last reply
    0
    • A Abubakarsb

      Hi Friends! I developed a website in asp.net using c#, I created a master page and using it in all other pages. I also have some javascript functions in content page but there is no AJAX control or any kind of control related to AJAX. But someimes, specially when I send user to 'Home' page from another page then I get this stupid javascript error 'Sys is undefined' but when I refresh the page then there is no error. If anyone of you knows about it please tell me how can I fix it? Waiting for your reply, Kind Regards, Abubakar

      U Offline
      U Offline
      Urs Enzler
      wrote on last edited by
      #2

      Sys is defined in the Microsoft AJAX Library, therefore I assume that there has to be any kind of a AJAX control on your site or at least some JavaScript that references Sys. I suggest that you take Firefox with the Web Developer Add-on and when you encounter the error then have a look a all JavaScript that is loaded for the page and look for the reference to Sys. Maybe this way you can find the reason.

      -^-^-^-^-^- no risk no funk

      A 1 Reply Last reply
      0
      • U Urs Enzler

        Sys is defined in the Microsoft AJAX Library, therefore I assume that there has to be any kind of a AJAX control on your site or at least some JavaScript that references Sys. I suggest that you take Firefox with the Web Developer Add-on and when you encounter the error then have a look a all JavaScript that is loaded for the page and look for the reference to Sys. Maybe this way you can find the reason.

        -^-^-^-^-^- no risk no funk

        A Offline
        A Offline
        Abubakarsb
        wrote on last edited by
        #3

        Ya Enzler, You are right, I just remember that as we are calling a webservice in javascript so we are using 'Sys' in a .js file. Here is the code which we are using for that; PPMService.registerClass('PPMService',Sys.Net.WebServiceProxy); Will u please tell me what should I do? I have noticed one thing more that if ur page remains untouch for some time then it also gives same error. Plz suggest a solution. Regards, Abubakar

        U 1 Reply Last reply
        0
        • A Abubakarsb

          Ya Enzler, You are right, I just remember that as we are calling a webservice in javascript so we are using 'Sys' in a .js file. Here is the code which we are using for that; PPMService.registerClass('PPMService',Sys.Net.WebServiceProxy); Will u please tell me what should I do? I have noticed one thing more that if ur page remains untouch for some time then it also gives same error. Plz suggest a solution. Regards, Abubakar

          U Offline
          U Offline
          Urs Enzler
          wrote on last edited by
          #4

          A simple solution - but not necessarily the right one - is to add a ScriptManager (from ASP.NET AJAX) to the master page. Then the needed js files are registered on the client.

          -^-^-^-^-^- no risk no funk

          A 1 Reply Last reply
          0
          • U Urs Enzler

            A simple solution - but not necessarily the right one - is to add a ScriptManager (from ASP.NET AJAX) to the master page. Then the needed js files are registered on the client.

            -^-^-^-^-^- no risk no funk

            A Offline
            A Offline
            Abubakarsb
            wrote on last edited by
            #5

            The problem is I am relatively new here in asp.net 2.0 and I didn't develop project, I am just fixing bugs. I have found this in masterpage; but I could not find definiation of 'ScriptManager1'. Will u please tell me how can I add a ScriptManager in masterpage?

            U 1 Reply Last reply
            0
            • A Abubakarsb

              The problem is I am relatively new here in asp.net 2.0 and I didn't develop project, I am just fixing bugs. I have found this in masterpage; but I could not find definiation of 'ScriptManager1'. Will u please tell me how can I add a ScriptManager in masterpage?

              U Offline
              U Offline
              Urs Enzler
              wrote on last edited by
              #6

              Ask someone of your development team or look at http://ajax.asp.net. Basically drag and drop the ScriptManager from the Toolbar onto the design view of the Master page.

              -^-^-^-^-^- no risk no funk

              A 1 Reply Last reply
              0
              • U Urs Enzler

                Ask someone of your development team or look at http://ajax.asp.net. Basically drag and drop the ScriptManager from the Toolbar onto the design view of the Master page.

                -^-^-^-^-^- no risk no funk

                A Offline
                A Offline
                Abubakarsb
                wrote on last edited by
                #7

                This is the main problem that we all are a new development team. The guy who developed it is in Israel and on vocations. ScriptManager is already there in masterpage. I also added following line in tag under web.config But still no difference. If I page remains untouched for some time or another page sends user to 'Home' page then I get this stupid javascript error. I am really tired with it and still looking for a solution. Abubakar

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups