S
Steve
I'm trying to use XMLHttpRequest with asp.net
The tutorial that I have been following is based on PHP. All the client
script stuff was working fine, but now I'm trying to create the asp.net page
that will answer the request.
For testing, I just want to return a simple string. I thought I could do
something like this:
<code>
if(this.Request.QueryString.Count > 0 && this.Request.QueryString[0] ==
"GetImgData")
{
// this is a request from the ActiveX XmHttpRequest object trying
to get
// data about this image. I will return the big image URL, the
description
// and date/time information
Response.Write("testing!");
Response.Flush();
}
</code>
This does't work, it returns the full response with all the rendered HTML.
I'm sure I am doing this wrong, but I'm not sure why? Any ideas?
Thanks,
Steve
The tutorial that I have been following is based on PHP. All the client
script stuff was working fine, but now I'm trying to create the asp.net page
that will answer the request.
For testing, I just want to return a simple string. I thought I could do
something like this:
<code>
if(this.Request.QueryString.Count > 0 && this.Request.QueryString[0] ==
"GetImgData")
{
// this is a request from the ActiveX XmHttpRequest object trying
to get
// data about this image. I will return the big image URL, the
description
// and date/time information
Response.Write("testing!");
Response.Flush();
}
</code>
This does't work, it returns the full response with all the rendered HTML.
I'm sure I am doing this wrong, but I'm not sure why? Any ideas?
Thanks,
Steve