Click here to Skip to main content
15,887,422 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can we do asynchronous post back without using ajax updatepanel
in asp.net2.0 c#
Posted

there are lot of ways to do it like:

1) using PageMethods
2) ICallBackEventHandler
3) XmlHttpRequest


For implementation refer these:

Using Page Methods in ASP.NET AJAX[^]

XMLHttpRequest Call[^]

hope it helps :)
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 10-Jul-12 2:05am    
XmlHttpRequest is AJAX...
--SA
Uday P.Singh 10-Jul-12 2:45am    
yeah, I guess OP is asking for without updatepanel also.
Amit Jamwal 10-Jul-12 2:08am    
thnx for the help.
i used icallbackeventhandler but that works only for html controls i think.
i want to use with asp.net controls.
The only way i can think of async communication is by

1. using uppdatepanel and other server controls.
2. using xmlhttprequests.
3. using jQuery AJAX.

I know you have specifically mentioned no AJAX( and frankly i dont understand why) still i would give you a couple of links specifying the above 3 mentioned approaches. See if you could use any of them.

AJAX for Beginners (Part 1) - Understanding ASP.NET AJAX Server Controls[^]
AJAX for beginners (Part 2) - Using XMLHttpRequest and jQuery AJAX to implement a cascading dropdown[^]

Also, Could you please let me know why do you want NO_AJAX? is there some requirement or constraint demanding this.
 
Share this answer
 
Comments
Amit Jamwal 10-Jul-12 2:29am    
thnx for ur reply..
actualy our server doesn't support ajax.
And Our compny don't want to use ajax in website even i don't know why and they are still using asp.net2.0 for the development purpose.
thnx
amit jamwal
Rahul Rajat Singh 10-Jul-12 2:33am    
In that case it is not possible to do async postbacks.

But asp.net 2.0 can still work with AJAX, you just need to have AJAX extension installed in the server and make the changes in web.config to refer to proper assemblies. check if that is allowed.
Amit Jamwal 10-Jul-12 2:32am    
I think json is the solution of my prob.

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