Re: Does ASP.Net and the AJAX included support Web Parts drag and drop?
|
Jai Dev Dhabliwala |
|
5/26/2008 3:05:11 AM |
Be sure that you have this line below for you to enable the Dragging and Droping of webparts in the zone.. protected void Page_Load(object sender, EventArgs e)
{ this.WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode;
} Take a look at this article below http://www.koffeek oder.com/ArticleDetails.aspx?id=340_Creating_Ajax_Enabled_Webparts Post Comments |
|
I guess I am still a little confused (to say the least)... I thought all the hacks to get the web parts to work with the update panels would be resolved in Visual Studio 2008 & ASP.Net 3.5 (the new version of AJAX). When I use the code you listed above, the drag and drop only works the first time and won't work from that point on. Also, I can't set the mode to DesignDisplayMode like I can set the mode to BrowseDisplayMode or EditDisplayMode. Is that correct? I am going to try the fix you listed above and see if that helps... I guess from your article, it seems the web part manager is broke, not AJAX.
Any additional info you can give would be very app reciated... Post Comments |
|
Ok, I guess I should have paid more attention to my code. The drag & drop and everyth ing work fine with ASP.Net 3.5, the new AJAX and Visual Studio 2008 IF you have all the web par t components inside the update panel (or two - I didn't try that, but I would imagine it wo uld also work). My problem was I have the web part manager outside the update panel...&nb sp; Now everything works just fine (no postbacks).... Post Comments |
|
Check out this link: http://blog.btburnett.com/2008/04/grouping-update-panels.html It is a useful class that you can use to place multiple UpdatePanels on your page and have them always update together. This way you can have your WebPartManager or your zones in different places on your page without needing to wrap the entire page in one big UpdatePanel. I have it working on one of my sites. Post Comments |
|