Post Back on a pagetype that contains a block type with its own postback

Vote:
 

I have pagetype, which contains a block type that has a postback submit button. And the page type also has a submit button. 

When I click the page type submit button, my block is also posted back. Is there a way to postback only to the pagetype controller. 

#117438
Feb 20, 2015 16:37
Vote:
 

Looking at EPiServer and ASP.NET postback eventing architecture and current implementation - I'm not sure that this could be easily achievable. We faced similar issue and this is something we ended up with:

a) Name each (hosting page and block) submit buttons

b) During postback hosting page and block will receive postback events

c) Check for incoming post values to determine either postback button was clicked in hosting page or in block itself.

d) Depending on value execute handler either in page ir in block

#117452
Feb 21, 2015 20:04
Vote:
 
#117453
Feb 21, 2015 20:05
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.