views:

442

answers:

3

How to Avoid ASP.NET postbacks?

+2  A: 

Use AJAX, UpdatePanels, JQuery:

http://www.asp.net/ajax/ should give you a good start.

Pawel Lesnikowski
yea that is what i was going to say to.. ajax/jquery can perform some tasks without postback.. it depends on you specific situation to.your situation might be as eazy asif(!Page.IsPostback) //todo
Dejan.S
+1  A: 

Asp.NET is entirely based on Postbacks.

May be are you looking for partial page rendering and client side stuffs. If this is the case, you can have a look at Asp.NET Ajax.

Manitra Andriamitondra
A: 

Try using html controls if you want to avoid postbacks. ie., it doesn't post back to the server.

What is your exact requirement? You don't want to postback the control or you don't want to feel the postback of a page. If so, you can go for UpdatePanel in asp.net ajax and try using Conditional Update.

engineerachu
i want to capture all postback scenario including control postback and avoid it.
rockrule