This is a discussion on WebParts controls within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, I need to drag and drop controls from one webpartzone to other webpartzone The controls in the two web ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, I need to drag and drop controls from one webpartzone to other webpartzone The controls in the two web part zones should swap. Can any one tell me Is this possible in web parts?
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
| Sponsored Links |
| |||
| Hi buddy, Can you explain with any sample? Sample code which uses iframe and web parts, where swapping is done?
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
| |||
| Yes... I haven't tried webparts within iframes.. but i think it is possible to drag and drop elements within iframes. Try this.. just put the code below in the page load where your webparts reside. Code: protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
this.WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode;
}
} ![]() |
| |||
| Just tried to use iframes with webparts today and it works fine here, I can drag and drop webparts within iframe here is my code snippet webparts.aspx ----> where my webparts are created Code: <cc1:WebPartManager ID="WebPartManager1" runat="server"></cc1:WebPartManager>
<table>
<tr>
<td style="width: 100px; height: 100px;">
<cc1:WebPartZone ID="WebPartZone1" runat="server">
<ZoneTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</ZoneTemplate>
</cc1:WebPartZone>
</td>
<td style="width: 100px; height: 100px;">
<cc1:WebPartZone ID="WebPartZone2" runat="server">
</cc1:WebPartZone>
</td>
<td style="width: 100px; height: 100px;">
<cc1:WebPartZone ID="WebPartZone3" runat="server">
</cc1:WebPartZone>
</td>
</tr>
</table> Code: protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
this.WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode;
}
} Code: <form id="form1" runat="server">
<iframe height="100%" src="webparts.aspx" width="100%">
</iframe>
</form> |
| |||
| Can you please tell me how to avoid post backduring swapping of controls
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ASP.NET Data Controls | Venkat | ASP and ASP.NET Programming | 133 | 10-11-2008 08:41 PM |
| How can we Dynamically create web controls | Kirubhananth | ASP and ASP.NET Programming | 3 | 03-14-2008 10:00 PM |
| How to add controls into the page dynamicaly | kingmaker | ASP and ASP.NET Programming | 1 | 07-23-2007 07:39 AM |
| Asp.net controls not supported by Ajax? | Gopisoft | ASP and ASP.NET Programming | 0 | 07-17-2007 12:22 AM |
| Hide WM Player controls in FireFox in ASP.NET | muthuramkumar | ASP and ASP.NET Programming | 4 | 03-19-2007 04:42 AM |