IT Community - Software Programming, Web Development and Technical Support

WebParts controls

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-30-2007, 10:57 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Question WebParts controls

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!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-30-2007, 11:18 PM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Wink Re: WebParts controls

Hi,
Yes, it is possible in aspnet webparts.

Webparts is basically designed for you to create customizable page by dragging and dropping of elements in different zones.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-01-2007, 03:17 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: WebParts controls

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!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-04-2007, 11:06 PM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Default Re: WebParts controls

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; 
}
}
Hope this will help u...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-14-2007, 01:55 AM
mobilegeek mobilegeek is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 205
mobilegeek is on a distinguished road
Smile Re: WebParts controls

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>
webparts.cs

Code:
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            this.WebPartManager1.DisplayMode = WebPartManager.DesignDisplayMode;
        }
    }
default.aspx ----> the page that contains the iframe and place my webparts inside the iframe

Code:
<form id="form1" runat="server">
    <iframe height="100%" src="webparts.aspx" width="100%">
        
    </iframe>
    </form>
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-16-2007, 03:06 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Question Re: WebParts controls

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!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 08:57 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0