CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.web_parts_and_personalization Tags:
Item Type: NewsGroup Date Entered: 8/26/2007 7:11:52 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 15 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
sulo
Asp.Net User
Edit mode in Webparts8/26/2007 7:11:52 AM

0/0

Hi All, 

How do bring a DropDownList when i click Edit button in a webpart as in iGoogle. i wanno control the contents in a webpart by selecting the dropdownlist.

i will hav  2 dropdownlist to change the contents in the webpart.

when i click the edit  button the dropdown shud appear and i shud be able to personalise after selectiing from the dropdown.

Is there any option for that in webparts??

Reference:

http://www.google.co.in/ig?hl=en 

http://my.nytimes.com/?oref=login 

Please give me any suggestion..

Thanx in advance,

Sulo. 

 

Nai-Dong Jin -
Asp.Net User
Re: Edit mode in Webparts8/31/2007 4:10:08 AM

0/0

Hi,

Based on my understanding Do you mean you want to add your own menu choice in a dropdownlist like the one in webpart titile?

If so, you can take good advantage of the default menu in WebParts. You can add your own verb onto the menu and create the corresponding event handler for those custom verbs. Also, you can change the apperance and the style of the default menu.

Here are some materials for you to refer.

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartverb_properties.aspx
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartzonebase.menulabelhoverstyle.aspx
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartzonebase.menulabeltext.aspx

Hope that helps. Thanks.


Sincerely,
Michael Jin.
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
patel251086
Asp.Net User
Re: Edit mode in Webparts2/27/2008 8:18:19 AM

0/0

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Security.Permissions;
//using System.

[AspNetHostingPermission(SecurityAction.Demand,
     Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand,
  Level = AspNetHostingPermissionLevel.Minimal)]

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //WebPartManager wpm = new WebPartManager();
            //Response.Write(wpm.SupportedDisplayModes.Count);
            DropDownList1.Items.Add("select");
            foreach (WebPartDisplayMode wpdm in WebPartManager1.SupportedDisplayModes)
            {
                String ModeName = wpdm.Name;
                if (ModeName != null)
                {
                    ListItem LI = new ListItem(ModeName, ModeName);
                    DropDownList1.Items.Add(LI);
                }
            }
            Searching1.Title = "dipak";

        }
       
        if (Searching1.Title != null)
        {
            //WebPartZone2.WebParts[1].Title = Searching1.Title;
        }

        //WebPartZone1.WebParts[0].Title = "Hi";
    }

    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        //WebPartManager wpm=new WebPartManager();
        String selectedMode = DropDownList1.SelectedValue;
        WebPartDisplayMode mode =WebPartManager1.SupportedDisplayModes[selectedMode];
        if (mode != null)
            WebPartManager1.DisplayMode = mode;
       

    }
}

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning SharePoint 2007: Building Team Solutions with MOSS 2007 Authors: Amanda Murphy, Shane Perran, Pages: 552, Published: 2007
Core Internet Application Development with ASP.NET 2.0 Authors: Randy Connolly, Pages: 1049, Published: 2007
SharePoint 2007 User's Guide: Learning Microsoft's Collaboration and Productivity Platform Authors: Seth Bates, Tony Smith, Pages: 407, Published: 2007
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Microsoft Sharepoint: Building Office 2007 Solutions in VB 2005 Authors: Scot P. Hillier, Pages: 552, Published: 2007
Microsoft SharePoint Server 2007 Bible Authors: Wynne Leon, Wayne Tynes, Simeon Cathey, Pages: 792, Published: 2007
Access 2007: The Missing Manual Authors: Matthew MacDonald, Pages: 734, Published: 2006
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Beginning SharePoint Administration: Windows SharePoint Services and SharePoint Portal Server Authors: Göran Husman, Pages: 522, Published: 2006
ASP.NET 2.0 Web Parts in Action: Building Dynamic Web Portals Authors: Darren Neimke, Pages: 324, Published: 2007

Web:
CodeProject: Switch the sharepoint webpart page Display Mode into ... Mar 1, 2008 ... Switch the sharepoint webpart page Display Mode into Edit Mode and Vice Versa. By Madhur Ahuja Switching the Display Mode of Sharepoint ...
Using WebParts in ASP.Net 2.0 Feb 28, 2007 ... The edit mode is used to edit webparts at runtime. Editing a webpart is further divided into four types: Appearance , Behavior , Property ...
Edit mode in Webparts - ASP.NET Forums ASP.NET Forums » General ASP.NET » Web Parts and Personalization » Edit mode in Webparts ... Filed under: Edit mode in Webparts ...
MarkItUp - Web Part Pages - DisplayModes Sep 25, 2005 ... In "edit" mode users can move web parts between zones just as they can when in " design" mode. Switching the page into "edit" mode displays ...
BehaviorEditorPart Class (System.Web.UI.WebControls.WebParts) The BehaviorEditorPart control is a tool part that becomes visible only when a Web Parts page is in edit mode, and when a specific WebPart control has been ...
WebPart Framework basics Aug 17, 2007 ... Edit Mode:- In this mode you can modify appearance, style and properties of your webparts. Go to design view of your webpage. ...
Code, Articles, Discussion on Microsoft Technologies : Switch the ... Apr 1, 2008 ... Switch the sharepoint webpart page Display Mode into Edit Mode and Vice Versa. Recently one of my clients had a requirement to go into Edit ...
CSS causes JavaScript error while moving Web Parts in edit mode ... Pingback from Internet Explorer Script Error » Blog Archive » CSS causes JavaScript error while moving Web Parts in edit mode ...
15 Seconds : Introduction to Web Parts in ASP.NET 2.0 In edit mode we can edit web parts on runtime as well. Editing of a web part is further divided into four types: Appearance, Behavior, Property, Layout. ...
CodeGuru: Using Webparts in ASP.NET 2.0 Mar 6, 2007 ... In edit mode, you can edit web parts at runtime as well. Editing a web part is further divided into four types: Appearance, Behavior, ...




Search This Site:










only drag and drop in certain zones

stability of whidbey

ttt forum - formating tags

detail page problem redirected from a hyperlink column in a datagrid

creating portals using wildcard hostheader

how can i validate username and password

master page and image files

visual studio 2005 express/visual studio 2005 same language support

authentication not persisting across virtual directories

evaluation questions

login problems

createuserwizard

installation error - dotnetnuke 3.0.13

problem using context.rewrite and forms authorization

simplicity

uploading images/files to server

cannot create a new asp.net application

cdo seems flaky...

master page inheritance

user control upload doesn't change

using the ie treeview control

limit directory security to asp net application only

toolbars in asp.net2.0

bdpdt security alert

first level menu hover issue

date from another month

a question about microsofts positioning of vwd and expressions

please suggest for coding windows authentication by form authentications

custom module templates for visual studio?

dnn store

 
All Times Are GMT