J
Jason Shohet
My control needs a value called 'orgID' which the parent page will have.
I want to avoid the parent page setting values in textboxes etc, in the ascx
control since this violates encapsulation principles (right?)
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
I want to avoid the parent page setting values in textboxes etc, in the ascx
control since this violates encapsulation principles (right?)
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