Hello:
I am wokring with the tutrorials section of the ATLAS. In the updatepanel example, they used an imagebutton withonclick event. and they had anupdatepanel who is triggered on the click of the imagebutton.
I wonder, when the imagebutton is clicked, doesn't that cause a postback? shouldn't we have included the imagebutton inside theupdatepanel? Am I missing something here?
thanks,
Hi,
Nope, as you declare ImageButton to trigger UpdatePanel with
<Triggers><atlas:ControlEventTriggerControlID="ImageButton1"EventName="Click"/></Triggers>it knows that when ImageButton1 is clicked, Atlas should take care of posting. You put inside UpdatePanel's <ContentTemplate> the content you wish to be dynamically/partially rendered, and ImageButton does not need to be there.
No comments:
Post a Comment