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