Hi
Some help needed please.
Scenario:
Master page with left panel; left panel has a usercontrol that is menu with links to pages, say they're called Page1.aspx, Page2.aspx, Page3.aspx. They use all use the MasterPage
First page displayed in Page1.aspx. Page1.aspx has a user control of type "MyUsercontrol"
Page2.aspx has a user control of type "AnotherUsercontrol"
Page3.aspx has a user control of type "YetAnotherUsercontrol"
User clicks on "Page2.aspx" or "Page3.aspx" link; I want to then call a method on the Page1.aspx MyUserControl code-behind (method is NON-Shared)
Same type of thing .....
If user is currently on Page2.aspx and they click on Page1.aspx or Page3.aspx, I want to then call a method on the Page2.aspx AnotherUsercontrol code-behind (method is NON-Shared)
If user is currently on Page3.aspx and they click on Page1.aspx or Page2.aspx, I want to then call a method on the Page3.aspx YetAnotherUsercontrol code-behind (method is NON-Shared)
So to summarise when user clicks on a link, I was to call a non-shared method on a user control of the PREVIOUS page. I know I could have a Javascript onunload method for pages but I don't want to have to rewrite the code-behind in Javascript.
I've also seen Javascript call a WebMethod() on code behind but found that the method had to be shared (and as shared it couldn't access e.g. textboxes on user control)
How do I go about this?
Thanks
I write my asp in VB, so for me the syntax would be something like ctype(Page.Master,MasterPa
Hope that helps!?