WebPartManager set SelectedWebPart in EditMode

Discussion in 'ASP .Net' started by =?Utf-8?B?bWlsbXVzIHRlbmRlcg==?=, May 1, 2006.

  1. Hi,

    I use the WebPartManager technology of ASP.NET 2.0 without sharepoint.

    I want to set per server side code a webpart as editable.
    I´m able to set the webpartmanager in edit mode. Than each webpart gets a
    new verb called 'Edit'. When the user clicks to the verb in the browser of a
    webpart, then this webpart is the selected webpart in webpartmanagers
    property selectedwebpart and the EditorZone is displayed.
    I don´t want to need this two clicks to get to edit mode. I want to set this
    last edit of the webpart per server side code in my c# project.

    Thanks
    milmus
     
    =?Utf-8?B?bWlsbXVzIHRlbmRlcg==?=, May 1, 2006
    #1
    1. Advertising

  2. milmus,

    The selectedWebPart property is read only so you'll have to inherit the
    webpartmanager and override the selectedwebpart.

    Good Luck
    DWS


    "milmus tender" wrote:

    > Hi,
    >
    > I use the WebPartManager technology of ASP.NET 2.0 without sharepoint.
    >
    > I want to set per server side code a webpart as editable.
    > I´m able to set the webpartmanager in edit mode. Than each webpart gets a
    > new verb called 'Edit'. When the user clicks to the verb in the browser of a
    > webpart, then this webpart is the selected webpart in webpartmanagers
    > property selectedwebpart and the EditorZone is displayed.
    > I don´t want to need this two clicks to get to edit mode. I want to set this
    > last edit of the webpart per server side code in my c# project.
    >
    > Thanks
    > milmus
     
    =?Utf-8?B?RFdT?=, May 2, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tafs7
    Replies:
    0
    Views:
    529
    tafs7
    Dec 29, 2003
  2. Replies:
    2
    Views:
    506
  3. D. Shane Fowlkes
    Replies:
    3
    Views:
    379
    MasterGaurav
    Feb 23, 2005
  4. Islam Elkhayat

    DropDownList in DataGrid EditMode

    Islam Elkhayat, Apr 18, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,724
    =?Utf-8?B?RGVlcGE=?=
    Apr 20, 2005
  5. Andreas Wöckl

    DetailsView looses EditMode

    Andreas Wöckl, Jul 11, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    349
    Andreas Wöckl
    Jul 11, 2007
Loading...

Share This Page