One more challanging question of web part..

Last post 03-14-2007 5:11 PM by BhaveshPatel. 1 replies.

Sort Posts:

  • One more challanging question of web part..

    03-08-2007, 2:08 PM

     

    hey guys!

        I am creating the webpart(as usercontrol) dynamically and add them to the dummy zone and then close that zone, so basically It will go to the page catalog part... My code is something like below :

    Control

    control = LoadControl("~/UserControl/" + strFName);

    control.ID =

    "control";

    WebPart myWebPart = WebPartManager1.CreateWebPart(control);

    myWebPart.Title = strFName;

    WebPart newPart = WebPartManager1.AddWebPart(myWebPart,WebPartManager1.Zones[0], 0);

    WebPartManager1.CloseWebPart(newPart);

      and also it is being added to the page catalog part very well...... But..... there is always but....

          but it is being only added to that particular users's Pagecatalog only.... and What I am trying to implement is Administer can upload the webpart like above and that webpart will be available to All users's pagecatalogpart...

    any Idea or any disucussion ??????

    Please help....

    work smarter, Not Harder.

    Bhavesh Patel
  • Re: One more challanging question of web part..

    03-14-2007, 5:11 PM
    no answer... wow..... I love asp.net team........
    work smarter, Not Harder.

    Bhavesh Patel
Page 1 of 1 (2 items)