Showing posts with label order. Show all posts
Showing posts with label order. Show all posts

Wednesday, March 28, 2012

Atlas with javascript

I will try to put an update panel around a content place, in order to assure only the "inside" pages will be refreshed, leaving the master page static. There might work I suppose...

Is there any problem in registering our own javascript in a page that has an Atlas control like updatepanel ? If yes, how could it be worked around?

Hi

Should be able to just register your Javascript with the script manager on the page. If the javascript is going to be put in the master page then add the script manager to the master page and register the script in the code behind for the master page.

If you need to register more stuff in the content pages use the ScriptManagerProxy in the content page as you can only have a sing le script manager on a page.

A good over view ishttp://www.nikhilk.net/AtlasScriptManager.aspx

Hope that helps


Hi,

in addition to what Richard Line wrote; if you're going to inject JavaScript code (or script references) in a page after a partial postback, then you must rely on the static RegisterXXX methods of the ScriptManager.

Atlas WebParts and Subclassed WebPartManager? PLEASE?

I am working on a portal solution in which I've subclassed theWebPartManager class in order to override the OnAuthorizeWebPart methodto make use of the AuthorizationFilter property within myWebParts. Is there any way I can use the Atlas WebParts with asubclassed WebPartManager?

thanks,

jaredYes, you will need to write a new class that derives from the Atlas WebPartManager, and copy the code from your existing derived WebPartManager. If you plan to support both WebPartManagers, you will probably want to move the common code into a separate class.

-Mike