Hi All,
I have a user control hierachy as follows:
- Main Page
|--- User Control 1
| |--- User Control 1.1
| |--- User Control 1.2
|--- User Control 2
My questions are:
1. How would i invoke a method in User Control 2 from User Control 1...
i know this probably doesn't make sense to do this but i would be
interested to know how anyway.
2. How would i reference an attribute/method in Main Page from any of
the User Controls?
3. How would i get the name of the Main Page from User Control 1 so
that i could dynamically build a URL... for example... in User Control
1, i want to create the following URL:
http://www.foo.com/<main page>?SomeId1=1&SomeId2=2
...obviously if User Control 1 is being called from a number of
different places <main page> is going to be different each time, so how
do i get that value?
Any help would be much appreciated,
Thanks.