Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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"

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

Amit Joshi
Sr Software Engineer,
Pune , India
  #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

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

if (this.PostHelpedYou)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

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

All times are GMT -4. The time now is 06:02 AM.

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