J
Jason Shohet
I have an ascx control, and it needs a value called 'orgID' which the parent
page will have. I want to avoid the parent page setting values in fields on
the ascx control since this violates encapsulation principles,
SO...
I want to know if InvokeMember can be used to return a value from the
parent. ie:
Type myParent = this.Page.GetType();
string strOrgid = myParent.InvokeMember("GetOrgID", System.Reflection...
null, this.Page, new object[]{ });
If I make GetOrgID a function on the parent that returns a string, can the
above work?
Or is there a better way for the ascx to request values from its parent.
TY Jason Shohet
page will have. I want to avoid the parent page setting values in fields on
the ascx control since this violates encapsulation principles,
SO...
I want to know if InvokeMember can be used to return a value from the
parent. ie:
Type myParent = this.Page.GetType();
string strOrgid = myParent.InvokeMember("GetOrgID", System.Reflection...
null, this.Page, new object[]{ });
If I make GetOrgID a function on the parent that returns a string, can the
above work?
Or is there a better way for the ascx to request values from its parent.
TY Jason Shohet