Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 8th, 2009, 02:32 AM
Authorized User
 
Join Date: Feb 2005
Location: Pune, Maharashtra, India.
Posts: 11
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to amitjoshipune Send a message via Yahoo to amitjoshipune
Default WebPart not supporting/enabled displaymode other than "Browse"

Hi,
I am trying sample from http://msdn.microsoft.com/en-us/library/kswx7h7e.aspx
for creating webpart page. Basically its just a small application demonstrating use of webparts. Using MS VS 2008 with 2.0 framework.
I have following code in Page_InitComplete event handler.

_manager = WebPartManager.GetCurrentWebPartManager(Page);
string browserModeName = WebPartManager.BrowseDisplayMode.Name;
// Fill the drop-down list with the names of supported display modes.
foreach (WebPartDisplayMode mode in _manager.SupportedDisplayModes)
{
String ModeName = mode.Name;
// Make sure a mode is enabled before adding it.
if (mode.IsEnabled(_manager))
{
ListItem li = newListItem(ModeName,ModeName);
DisplayModeDropdown.Items.Add(li);
}
}
When I ran this application - i see only Browse mode avialable on machine. Is there any extra setting i need to do?
I am currently learning webparts , so please help me.
When i debugged this , at foreach statement i get two display modes but only browse mode is enabled , why so?
Is there any setting i need to do?
I ran aspnet_regsql utility also.

Regards,
Amit Joshi
Sr Software Engineer,
Pune , India
amitjoshipune@gmail.com
  #2 (permalink)  
Old January 9th, 2009, 02:34 PM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Did you run the page in FireFox or Internet Explorer?
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}


Similar Threads
Thread Thread Starter Forum Replies Last Post
google Response.Write(Request.QueryString("q")) senol01 ASP.NET 2.0 Basics 1 January 2nd, 2009 12:01 PM
pgs. 506-512 "r" ? Rachel BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 January 2nd, 2009 05:02 AM
preserving " for later use in testing in xslt akentanaka XSLT 1 October 14th, 2008 03:59 AM
replacing " gantait XSLT 1 March 4th, 2007 10:44 AM
Replace Character " fosca XSLT 1 November 11th, 2004 04:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.