473,325 Members | 2,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

xmlhttp server side object assignment

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

Jan 28 '06 #1
3 1305
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"CsaaGuy" wrote:
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

Jan 28 '06 #2
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.

Jan 28 '06 #3
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"CsaaGuy" wrote:
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.

Jan 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: mikeyjudkins | last post by:
Ive been banging my head on the wall for hours with this one, hopefully someone will know what Im doing wrong here :\ The Goal: I have an xml file that is generated on the fly via JSP which I...
7
by: Fabri | last post by:
I'm trying to develop a way to include static files in htm pages with javascript. I'm trying to use XMLHTTP object this way: ...
3
by: Dag Sunde | last post by:
I'm trying to call an ASP script with the XMLHttp object in Client-side Javascript (which goes well). My problem is that the server gives me an error when I try to set a Session variable in the...
6
by: Vanessa | last post by:
I have a question regarding async mode for calling Microsoft.XMLHTTP object. Microsoft.XMLHTTP hangs the IE once in a while suddenly, but it will work again after half an hour or so without doing...
4
by: Dave H | last post by:
I want to use XMLHTTP or something like it from my server code. I'm trying to call a web page, and I want the results back into a string. ideas? Thanks, Dave
5
by: Ric | last post by:
I created a page in ASP.Net (with no buffering) that does the following: Output line #1 FLUSH {wait 1 second} Output line #2 {wait 1 second} Output line #3 FLUSH
3
by: Noozer | last post by:
Hrm.. last posting was mangled. Let's try again, with more detail... I'm just starting to try out "Ajax" web programming and I've got a question. AJAX is fairly straightforward. Javascript...
4
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the...
1
by: KoosJaspers | last post by:
I have a remarkable problem. Opening a file using xmlhttp works perfectly. The responseText output is read, since it can be assigned to an alert() message, as follows : alert(xmlhttp.resposeText)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.