Feb 06, 2014, 12:02 PM
[CLOSED] Extending DirectMethod for cross-posting
So, first thing I'd like to do is extend DirectMethods with different default parameters for shorthand. To do that, DirectMethod must not be internal.
The second thing may be an issue or a request. The issue is that when I make a DirectMethod public via IDMode = DirectMethodProxyIDMode.None, I expect the Control that the DirectMethod originates not to matter as long as it finds it in the global list. The problem is I'm cross-posting between pages now and I originate in a DirectMethod that appears in a UserControl, but on post to the next page, it's in the Page Level. The RaisePostBack eventArgument is cp_ctl05|public|EventPageRefresh but it need to be -|public|EventPageRefresh to find it.
So either I need a way to override the ControlID in the DirectMethod, or I need the RaisePostBackEvent for requestType==public to disregard the controlid it originated. I prefer the latter but either option would be fine.
The second thing may be an issue or a request. The issue is that when I make a DirectMethod public via IDMode = DirectMethodProxyIDMode.None, I expect the Control that the DirectMethod originates not to matter as long as it finds it in the global list. The problem is I'm cross-posting between pages now and I originate in a DirectMethod that appears in a UserControl, but on post to the next page, it's in the Page Level. The RaisePostBack eventArgument is cp_ctl05|public|EventPageRefresh but it need to be -|public|EventPageRefresh to find it.
So either I need a way to override the ControlID in the DirectMethod, or I need the RaisePostBackEvent for requestType==public to disregard the controlid it originated. I prefer the latter but either option would be fine.
Last edited by Daniil; Feb 18, 2014 at 3:43 AM.
Reason: [CLOSED]