Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes.

ATLAS ConfirmButton control comes with the ATLAS Control Toolkit. The purpose of the ConfirmButton is to simply give the user a confirmation message with choices "OK" and "Cancel". Now, if you press "OK" a postback will happen which kinda breaks the ATLAS rules of NO POSTBACK. On the other hand you can put the the ConfirmButton inside the UpdatePanel and it will be rendered without any POSTBACK.   

powered by IMHO 1.3

Posted on Monday, April 17, 2006 8:13 PM | Back to top


Comments on this post: ATLAS ConfirmButton Control Cause a PostBack

# re: ATLAS ConfirmButton Control Cause a PostBack
Requesting Gravatar...
There's nothing wrong with it. ATLAS doesn't mean NO POSTBACK. Especially the control toolkit; they are just control extenders, don't necessarily provide an asynchronous behaviour.
Left by Simone Busoli on Apr 19, 2006 2:23 PM

# re: ATLAS ConfirmButton Control Cause a PostBack
Requesting Gravatar...
The main purpose of the ATLAS Framework is to provide the controls which does not postback to the server.
Left by AzamSharp on Apr 19, 2006 2:43 PM

# re: ATLAS ConfirmButton Control Cause a PostBack
Requesting Gravatar...
Sorry Azam, but you're wrong. Ask ScottGu and listen to what he says about ATLAS.
Left by Simone Busoli on Apr 19, 2006 3:08 PM

# re: ATLAS ConfirmButton Control Cause a PostBack
Requesting Gravatar...
ATLAS is mainly designed to give users a rich client framework which is does. The confirmButton does cause a postback but you can easily solve this by putting the confirm button inside the update panel control.
Left by AzamSharp on Apr 19, 2006 3:15 PM

# re: ATLAS ConfirmButton Control Cause a PostBack
Requesting Gravatar...
Right, even if now I understand why you were talking about "breaking the rule" with ATLAS. You refered to it as the "ConfirmButton control" which in fact it isn't. It's just a control extender, as the guys at MS called them, which allows to extend a common control behavior. That's why if you place it on the page then the button posts back, as well as if you place it inside an UpdatePanel it doesn't. It's always ATLAS, but it's doing but two very different things.
Left by Simone Busoli on Apr 19, 2006 5:16 PM

Your comment:
 (will show your gravatar)


Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net