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. Response.Write error

Response.Write error

Scheduled Pinned Locked Moved ASP.NET
helpdatabasesysadmindebuggingtools
7 Posts 5 Posters 2 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.
  • N Offline
    N Offline
    Naunt
    wrote on last edited by
    #1

    After selected data from database into reader, if reader is Nothing i want to prompt alert

    Response.Write("<script>alert('There is no Data to show');</script>")

    when I run alert didn't prompt, just got errir as below ... Error: Sys.WebForms.PageRequestmanagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the reponse is modified by calls to Reponse. Write(), reponse filters, httpModules, orserver trace is enabled. Detail: Error parsing near '<script> alert(' . Please help Thanks and best regards.

    M R Y R 4 Replies Last reply
    0
    • N Naunt

      After selected data from database into reader, if reader is Nothing i want to prompt alert

      Response.Write("<script>alert('There is no Data to show');</script>")

      when I run alert didn't prompt, just got errir as below ... Error: Sys.WebForms.PageRequestmanagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the reponse is modified by calls to Reponse. Write(), reponse filters, httpModules, orserver trace is enabled. Detail: Error parsing near '<script> alert(' . Please help Thanks and best regards.

      M Offline
      M Offline
      m dhu
      wrote on last edited by
      #2

      check here[^] for the causes.

      N 1 Reply Last reply
      0
      • N Naunt

        After selected data from database into reader, if reader is Nothing i want to prompt alert

        Response.Write("<script>alert('There is no Data to show');</script>")

        when I run alert didn't prompt, just got errir as below ... Error: Sys.WebForms.PageRequestmanagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the reponse is modified by calls to Reponse. Write(), reponse filters, httpModules, orserver trace is enabled. Detail: Error parsing near '<script> alert(' . Please help Thanks and best regards.

        R Offline
        R Offline
        raghu g
        wrote on last edited by
        #3

        It works perfectly fine for me.. add semicolon ; at last of your statement

        N 1 Reply Last reply
        0
        • R raghu g

          It works perfectly fine for me.. add semicolon ; at last of your statement

          N Offline
          N Offline
          Naunt
          wrote on last edited by
          #4

          Sure I added ; at last. ... even very simple

          Response.Write("string")

          also got error.

          1 Reply Last reply
          0
          • M m dhu

            check here[^] for the causes.

            N Offline
            N Offline
            Naunt
            wrote on last edited by
            #5

            Thanks, mkgoud. will check it.

            1 Reply Last reply
            0
            • N Naunt

              After selected data from database into reader, if reader is Nothing i want to prompt alert

              Response.Write("<script>alert('There is no Data to show');</script>")

              when I run alert didn't prompt, just got errir as below ... Error: Sys.WebForms.PageRequestmanagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the reponse is modified by calls to Reponse. Write(), reponse filters, httpModules, orserver trace is enabled. Detail: Error parsing near '<script> alert(' . Please help Thanks and best regards.

              Y Offline
              Y Offline
              Yusuf
              wrote on last edited by
              #6

              You can't send script in the response stream and expect it to be executed. You need to register it as being script first. Look at this [^] MSDN page for further help.

              Yusuf May I help you?

              1 Reply Last reply
              0
              • N Naunt

                After selected data from database into reader, if reader is Nothing i want to prompt alert

                Response.Write("<script>alert('There is no Data to show');</script>")

                when I run alert didn't prompt, just got errir as below ... Error: Sys.WebForms.PageRequestmanagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the reponse is modified by calls to Reponse. Write(), reponse filters, httpModules, orserver trace is enabled. Detail: Error parsing near '<script> alert(' . Please help Thanks and best regards.

                R Offline
                R Offline
                RaviRanjanKr
                wrote on last edited by
                #7

                I am not sure but hope this link[^] might help you to solve your problem.

                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