Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Thanks for reading!

ASP.Net provides you AJAX functionality through it's own goodies.
I need not to make use of these goodies.

I need to make an asynchronous call from the client and get back just a string straight from the server.

I know you can change the output type of an ASPX call to the server as in Response.ContentType = "some option", but so far I haven't been able to find exactly what I need to just output a simple string (can't believe it).

Can you help me with a basic code model to output a simple string that I can then get from the client side ?
VB or C# is just fine.

I don't need the client call (AJAX), unless you want some upvotes from the public :)


Thank you so much for your help!
Posted
Comments
John C Rayan 27-Feb-15 14:05pm    
did you look at .ashx that could help solve your issue.
Homero Rivera 28-Feb-15 11:54am    
Damn right! I'll accept and upvote such answer
John C Rayan 28-Feb-15 12:38pm    
Thank you
ZurdoDev 27-Feb-15 15:08pm    
Just do a simple WebService with a WebMethod that returns a string and call it via $.ajax()
Sergey Alexandrovich Kryukov 27-Feb-15 15:29pm    
It all depends on the structure of your AJAX HTTP request, where it comes from, what format is used, and so on.
—SA

1 solution

Please check How to Use ASP.NET WebForm for JSON or XML Response

Hope that helps !
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900