I am also using the Webparts in an Update Panel and with the work around Drag and Drop is working fine with IE. But Drag and Drop is not working in FF. I have tried the
public void InitScript()
{
this.RegisterClientScript();
}
also but it is also not working. I have tried with the Microsoft.Web.Preview.dll and it is also not working.
Please let me know if there any work around to get the Drag and Drop funtionality both in IE and FF.
I am using Webparts in the Ajax 1.0 Update Panel. I have used the workaround to get the Drag and drop in the IE and Firefox also. But I am disabling some or all verbs of the webparts according to the requirement. But i am unable to use WebPartverbRendermode
as Menu type i am able to use only titlebar type only. Please let me know the solution for the same.
I am using Infragistics Ultra WebChart controls in the webparts. With this work around of firefox support i could not able to drag and drop the webpart in the IE.Other webparts which doesn't have the chart control can able to drag and drop.
Can you send the code written for webparts to work both in IE and Firefox. I did the same thing that you have given but it is not working for me. Please give the sample code for reference and also for the first time loading the Drag n Drop is not working
after post back of Updatepanel it is working fine. Can you please tell me the reason for the same if possible.
Thansk for this, it works great using the Sample.Web.UI.WebParts.dll in release folder, however when Compiled using your code in VS2005, drag and drop/verb click stop working after any postback.
I noticed that the reference for System.Web.UI.ScriptManager is missing when first loading the soultion file in vs2005 so I added the reference to System.Web.Extensions back but vs2005 notified that System.Web.Extensions is in framework 3.5 while the project
is 2.0, I went ahead and added 3.5 anyway and compiled successfully but as mentioned earlier, this newly compiled DLL doesn't allow drag and drop/verb click after the first postback.
I would really appreciate if anybody that got this working can shed some light here as what I did wrong/missed.
Thanks guys.
* Solved, 2.0 System.Web.Extensions should indeed be used.
I still got problem with that... I need a framework which allow me drag and drop in both IE and FF, Safari, and I do not want to whole page postback for drag/drop activity.
ketaki_pore
Member
4 Points
28 Posts
Re: Workaround for using Web Parts with AJAX 1.0 UpdatePanel
Dec 13, 2007 09:12 AM|LINK
This really helped me.
Thanks a lot,
Ketaki
sivavenugopa...
Member
12 Points
11 Posts
Re: Workaround for using Web Parts with AJAX 1.0 UpdatePanel
Jan 29, 2008 05:13 AM|LINK
Hi,
I am also using the Webparts in an Update Panel and with the work around Drag and Drop is working fine with IE. But Drag and Drop is not working in FF. I have tried the
mharder
Contributor
4567 Points
917 Posts
Microsoft
Re: Workaround for using Web Parts with AJAX 1.0 UpdatePanel
Feb 08, 2008 01:00 AM|LINK
Works for me. I'm using .Net Framework 3.5 RTM and the latest version of the ASP.NET Futures. Here's my sample page:
<%
@ Register Assembly="Microsoft.Web.Preview" Namespace="Microsoft.Web.Preview.UI.Controls.WebParts" TagPrefix="cc1" %> <asp:ScriptManager ID="ScriptManager1" runat="server" /><asp:UpdatePanel ID="up1" runat="server">
<ContentTemplate>
<cc1:WebPartManager ID="wpm1" runat="server" />
<cc1:WebPartZone ID="wpz1" runat="server">
<ZoneTemplate>
<asp:Label ID="label1" runat="server" />
<asp:Label ID="label2" runat="server" />
</ZoneTemplate>
</cc1:WebPartZone>
</ContentTemplate>
</asp:UpdatePanel>
This posting is provided "AS IS" with no warranties, and confers no rights.
sivavenugopa...
Member
12 Points
11 Posts
Re: Workaround for using Web Parts with AJAX 1.0 UpdatePanel
Mar 12, 2008 03:12 AM|LINK
Hi,
I am using Webparts in the Ajax 1.0 Update Panel. I have used the workaround to get the Drag and drop in the IE and Firefox also. But I am disabling some or all verbs of the webparts according to the requirement. But i am unable to use WebPartverbRendermode as Menu type i am able to use only titlebar type only. Please let me know the solution for the same.
I am using Infragistics Ultra WebChart controls in the webparts. With this work around of firefox support i could not able to drag and drop the webpart in the IE.Other webparts which doesn't have the chart control can able to drag and drop.
sivavenugopa...
Member
12 Points
11 Posts
Re: Workaround for using Web Parts with AJAX 1.0 UpdatePanel
Mar 31, 2008 07:03 AM|LINK
Hi Rob,
Can you send the code written for webparts to work both in IE and Firefox. I did the same thing that you have given but it is not working for me. Please give the sample code for reference and also for the first time loading the Drag n Drop is not working after post back of Updatepanel it is working fine. Can you please tell me the reason for the same if possible.
tyeow
Member
2 Points
1 Post
Re: Workaround for using Web Parts with AJAX 1.0 UpdatePanel
Apr 10, 2008 07:32 PM|LINK
Hi, David,
Thansk for this, it works great using the Sample.Web.UI.WebParts.dll in release folder, however when Compiled using your code in VS2005, drag and drop/verb click stop working after any postback.
I noticed that the reference for System.Web.UI.ScriptManager is missing when first loading the soultion file in vs2005 so I added the reference to System.Web.Extensions back but vs2005 notified that System.Web.Extensions is in framework 3.5 while the project is 2.0, I went ahead and added 3.5 anyway and compiled successfully but as mentioned earlier, this newly compiled DLL doesn't allow drag and drop/verb click after the first postback.
I would really appreciate if anybody that got this working can shed some light here as what I did wrong/missed.
Thanks guys.
* Solved, 2.0 System.Web.Extensions should indeed be used.
newmajiajia
Member
5 Points
6 Posts
Re: Workaround for using Web Parts with AJAX 1.0 UpdatePanel
Jun 17, 2008 07:04 PM|LINK
Hi Mike,
Can you post more for your solution?
I still got problem with that... I need a framework which allow me drag and drop in both IE and FF, Safari, and I do not want to whole page postback for drag/drop activity.
Let me know whether it is true.
Thanks
Eric
mharder
Contributor
4567 Points
917 Posts
Microsoft
Re: Workaround for using Web Parts with AJAX 1.0 UpdatePanel
Jun 17, 2008 08:37 PM|LINK
My solution should do exactly what you describe.
This posting is provided "AS IS" with no warranties, and confers no rights.
karpach96
Contributor
2261 Points
415 Posts
Re: Workaround for using Web Parts with AJAX 1.0 UpdatePanel
Jun 19, 2008 02:11 PM|LINK
Hi,
I am using Visual Studio 2008 Team System (Developer Edition).
I can't find Microsoft.Web.Preview library anywhere, so I used regular Webparts controls and ScriptManager.
I copy paste your code from above. However, drag and drop still doesn't work in Firefox.
Viktar Karpach
MCPD Web Developer,MCTS SQL Server 2008,MCTS .NET 2.0-3.5 Web Application
ASP.NET C# Technical Blog
mharder
Contributor
4567 Points
917 Posts
Microsoft
Re: Workaround for using Web Parts with AJAX 1.0 UpdatePanel
Jun 19, 2008 05:42 PM|LINK
As I said above, you need to use the latest version of the ASP.NET Futures. It's a separate download available on www.asp.net.
This posting is provided "AS IS" with no warranties, and confers no rights.