ajax

J

jack

Hi all i have just tried an example of ajax.
i just wanted to know is ajax possible in asp.net with c#


Thanks for replying me .
 
P

PeterKellner

Hi all i have just tried an example of ajax.
i just wanted to know is ajax possible in asp.net with c#


Thanks for replying me .

take a look at atlas.asp.net
It has lots of really good stuff making it easy to use AJAX. It is in
beta though so be careful.
Peter Kellner
http://peterkellner.net
 
R

Richard Brown

jack said:
Hi all i have just tried an example of ajax.
i just wanted to know is ajax possible in asp.net with c#


Thanks for replying me .

Yes Ajax is very simple to do in asp.net with C#. There are lots of
good examples on the net just Google for one.

My main thoughts on Ajax after the initial "WOW that's cool and really
easy!" were that it would be great for some content that needed to be /
look dynamic, but I wouldn't want to go over the top and implement
everything this way simply because it's much more of an overhead to
implement.

It's a design choice really if you can get away with a post back then
leave it that way if you really need it to be seamless then use Ajax.

I haven't had a chance to play with the Atlas stuff yet (because it
doesn't run on the development server) but apparently it makes the
implementation much quicker.
 
J

jack

I have created a web service and am trying to call it with a post
method. but dosent seems to work below is my code

http_request.onreadystatechange = alertContents;
http_request.open('POST', url, false);
http_request.setRequestHeader ('Content-Type',
'application/x-www-form-urlencoded');
http_request.send("DistributorId='aa'");

'response value which is in a saperate function

alert("response:" + http_request.responseText);


please help me..
 
R

Richard Brown

jack said:
I have created a web service and am trying to call it with a post
method. but dosent seems to work below is my code

http_request.onreadystatechange = alertContents;
http_request.open('POST', url, false);
http_request.setRequestHeader ('Content-Type',
'application/x-www-form-urlencoded');
http_request.send("DistributorId='aa'");

'response value which is in a saperate function

alert("response:" + http_request.responseText);


please help me..

Take a look at the following: About half way down the article is a
description of the implementation.

http://www.codeproject.com/soap/JavaScriptProxy_01.asp
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top