This is a matter of accessing the control in a separate context. The server code blocks (<%= .... %> syntax) are executed in the context of the file currently being rendered so the AssmntContentWindow control that is declared on the content page is not directly accessible on the master page.
There are several ways to access it and you can choose the one that fits your style, scenario and needs best. Note that the following list cannot be complete and there may be other ways to achieve this:
- create a function that will return the desired popup. It will be in the markup of the content page and will simply do return $find("<%=AssmntContentWindow.ClientID%>"); while on the master page you will call this function instead of $find().
- if the RadWindow is in a RadWindowManager - use the client-side API of the RadWindowManager
- the getWindowByName() method and pass the server ID of the control (AssmntContentWindow)
- examine this blog post
that is a bit of a mix from the two approaches
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed