Saturday, March 24, 2012

Ajax and Web Part Catalog mode

I tried to work with standard web parts inside an ASP.NET page which has instance of Ajax Script Manager declared. The page doesn't have any other Ajax controls. The problem is that in catalog mode when draging a web part from one zone to another works only first time, after that portal functionality simply freezes. When I remove the the script manager this problem disapears. The Ajax version is 1.0 and I would like if there is a solution to this problem. I don't need AJAX functionality for web parts, just want to use standard web parts and occasionaly some AJAX controls on the same page.

Hi,

I fail to reproduce the issue. Can you show me your code?


Hi,

It is very simple. You just need to create empty .aspx page in Visual Studio 2005 and add to it ScriptManager and WebPartManager controls. Also, add two web part zones and drag and drop to one of them some standard controls. You need to add a standard button to the page outside of the web part zones and add a click handler to the button. In the click handler you change a web part mode to Catalog or Design. When you run the page you should click on the button to change the mode. After that, you drag and drop web part from one zone to another and try to move it back. In my case I cannot move it back but when I remove script manager than I'm able to move it back.

No comments:

Post a Comment