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. AJAX Problem

AJAX Problem

Scheduled Pinned Locked Moved Web Development
helpcsharpjavascriptdatabasequestion
4 Posts 3 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.
  • P Offline
    P Offline
    popin
    wrote on last edited by
    #1

    Hi, I'm using .Net 1.1 and AJAX. I'm using a "div" in my aspx page. I have a textbox and a button used to search the database. Now, whatever the user types in the textbox I want to show the returned results within the "div". The problem I'm facing is that in my code the "xmlHttp.responseText" is returning the entire content of the page. And not the returned results part. And so, is throwing me "Unknown Runtime Error" (javascript error). Am I doing something wrong? Please Help.

    C R 2 Replies Last reply
    0
    • P popin

      Hi, I'm using .Net 1.1 and AJAX. I'm using a "div" in my aspx page. I have a textbox and a button used to search the database. Now, whatever the user types in the textbox I want to show the returned results within the "div". The problem I'm facing is that in my code the "xmlHttp.responseText" is returning the entire content of the page. And not the returned results part. And so, is throwing me "Unknown Runtime Error" (javascript error). Am I doing something wrong? Please Help.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The response will contain whatever you put into it. What's your code for setting up the response ?

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • P popin

        Hi, I'm using .Net 1.1 and AJAX. I'm using a "div" in my aspx page. I have a textbox and a button used to search the database. Now, whatever the user types in the textbox I want to show the returned results within the "div". The problem I'm facing is that in my code the "xmlHttp.responseText" is returning the entire content of the page. And not the returned results part. And so, is throwing me "Unknown Runtime Error" (javascript error). Am I doing something wrong? Please Help.

        R Offline
        R Offline
        RichardGrimmer
        wrote on last edited by
        #3

        As a quicky, try adding Response.End() after you write what you want on the server.... :)

        "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

        P 1 Reply Last reply
        0
        • R RichardGrimmer

          As a quicky, try adding Response.End() after you write what you want on the server.... :)

          "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox

          P Offline
          P Offline
          popin
          wrote on last edited by
          #4

          Thanx for the suggestion...Richard... Your advice worked... Thanx once again...

          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