Events and Delegates with ASP.NET master pages?

It's instantiated as a global object, which is what you'll need to use.

It's instantiated as a global object, which is what you'll need to use: ((MyMasterPage)Master). SignOut += new MyMasterPage. SignOutHandler(MyEvent).

I can't seem to access MyMasterPage. SignOutHandler(MyEvent); from within my user control. I can however access it from a web form.

– Rob Bell Oct 15 '08 at 14:51 That's an odd one. If they're in the same namespace, you should be able to access a (non-instance) delegate on a master page from anywhere. Is the control you're trying to access from in the same namespace as master page?

– DannySmurf Oct 15 '08 at 17:28 I have no namespaces in my masters, pages or controls, but they all reside in their own folders. Are namespaces implied by folder names? Regardless, it wouldn't explain why my page can access the master but not my control.

– Rob Bell Oct 16 '08 at 7:44 Adding a reference to the master from my user control helped: – Rob Bell Oct 16 '08 at 8:45.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions