xmlhttp server side object assignment

C

CsaaGuy

I have a general question. There is a javascript object called xmlhttp
that can be used to callback into you webpage and run server side code
without a postback (submit). I have got this to work just fine and it's
cool. But of course there's an issue. When i bring the data back from
the server (like a sql call) and try to assign it back to a asp.net
object (like a textbox), it does not show up in the textbox. it only
shows up if i do a javascipt assignment. Does anyone know how to fix
this on the server side and not use javascript?
Thanks
 
G

Guest

CsaaGuy,
What you are describing is Remote Scripting (or "AJAX" or "Client
Callbacks", whatever floats your boat). This is a client - side operation and
returns the data to the client web page. So, if you want to use this data to
do any updating, you need to use client-side script and the HTML DOM of the
page to do so.
Peter
 
C

CsaaGuy

Thank you very much for the response. Your answer begs two questions.

The 1st is, why does nothing show up when i assign it on the server
side when i'm running the callback?

The 2od is, if i can't assign it on the server side during a callback,
how can i get the result over to the client side so i can do somthing
with it?

thanks again.
 
G

Guest

CsaaGuy,
I think the best way to answer this is by pointing to some good example code.

Go find "Anthem.Net" at sourceforge.net and download the "snapshot" from its
home page. This will compile for both 2003 and 2005, and offers a nice
infrastructure and "AJAX" style versions of the most common ASP.NET controls.

Unlike some other infrastructures, this one preserves the stateful nature of
the page and its controls which follows the overall Microsoft approach with
their upcoming Atlas offering.

if you run the sample page and look at the various methods, you will get up
to speed on Remote Scripting ("AJAX") for ASP.NET very quickly.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top