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: 6/26/2006 11:20:33 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 25 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
mrpp06
Asp.Net User
setting displaymode6/26/2006 11:20:33 AM

0/0

I have some code in a book that is causing an error.  Here is the code :

WebPartDisplayMode

wpDisplayMode = WebPartManager1.SupportedDisplayModes(DropDownList1.SelectedValue.ToString());

WebPartManager1.DisplayMode = wpDisplayMode;

And the error:

'System.Web.UI.WebControls.WebParts.WebPartManager.SupportedDisplayModes' is a 'property' but is used like a 'method' 

Anybody with experience of webparts that can tell me how to prevent this error?

nahoot
Asp.Net User
Re: setting displaymode6/26/2006 1:04:27 PM

0/0


SuportedDisplayModes is a property, not a method.. you cannot call it with arguments...

Try doing something like

foreach (WebPartDisplayMode displayMode in WebPartManager1.SupportedDisplayModes)
            {
                if (displayMode.Name.Equals(DropDownList1.SelectedValue.ToString()))
                {
                    WebPartManager1.DisplayMode = displayMode;
                    break;
                }
            }
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Killer Game Programming in Java Authors: Andrew Davison, Pages: 969, Published: 2005
Maximizing MS-DOS 5 Authors: Jim Boyce, David W. Solomon, Michael O. Coulter, Jerry W. Ellis, Pages: 730, Published: 1991
OpenGL Game Programming: game programming Authors: Kevin Hawkins, Dave Astle, Pages: 808, Published: 2002
Beginning OpenGL Game Programming: Game Programming Authors: Dave Astle, Kevin Hawkins, Pages: 336, Published: 2004
Excel 2007 For Dummies Quick Reference: Quick Reference Authors: John Walkenbach, Colin Banfield, Pages: 224, Published: 2006
Making Multimedia with LinkWay: A Practical Guide to Linkway and Linkway Live! Authors: Paul Henry, Pages: 544, Published: 1993
The BIOS Companion: The Book That Doesn't Come With Your Motherboard Authors: Phil Croucher, Pages: 494, Published: 1986
Pro Engineer -Wildfire Authors: David Kelley, Pages: 544, Published: 2004
Focus on SDL Authors: Ernest Pazera, Pages: 336, Published: 2002

Web:
Multi-display system and method of automatically setting display ... Unfortunately, the above four types of the existing technique cannot guarantee a real time and automatic setting of display mode every time the second ...
(WO/2007/036091) MULTIPLE DISPLAYS SYSTEM AND AUTOMATICALLY ... The invention also provides a method for automatically setting display mode of the multiple display system. Designated States: AE, AG, AL, AM, AT, AU, AZ, ...
Setting display mode or visibility client side for a panel with ... Setting display mode or visibility client side for a panel with domscripting. Last post 03-24-2006 12:44 PM by NC01. 13 replies. Sort Posts: ...
Multi-Display System And Method Of Automatically Setting Display ... A method for automatically setting display mode in a multi-display system comprising one main display and at least one second display, said method ...
ut2004 Error setting display mode: CreateDevice failed (8007000E ... ut2004 Error setting display mode: CreateDevice failed (8007000E) Troubleshooting & Technology.
LP: The display-mode setting The display-mode setting controls the ouput of identifiers and terms by the display command in the current proof context. ...
Display Mode (The Java™ Tutorials > Bonus > Full-Screen Exclusive ... Once an application is in full-screen exclusive mode, it may be able to take advantage of actively setting the display mode. A display mode (java.awt. ...
Official Lineage II Message Board: Error setting display mode ... Error setting display mode: CreateDevice failed (D3DERR_NOTAVAILABLE). Please delete your Option.ini file if this error prevents you from ...
Error Setting Display Mode?! Please help [Archive] - Atari Forums Error setting display mode: No acceptable display modes found (D3D_OK). Please delete your Unreal2.ini file if this error prevents you from ...
MODE (Set Display Mode) Not all display adapters support all three settings. To set the number of lines, you must have installed the ANSI.SYS device driver by using a DEVICE ...

Videos:
Nikon D200 Digital SLR - Magic Lantern DVD Guide An overview of the D200's Display Mode option, including an explanation of the various histograms, excerpted from the Magic Lantern DVD Guide for the...
FlatOut2 (PC) Gameplay - Derby Here is a quick video of me playing FlatOut2 in Single Derby mode. This is not serious gameplay, I'm just showing you what the game is like. Video ...
How to improve Geforce 8800GT performance Single-display performance mode: If you have only one active display, this is the setting for you. You can also specify this setting if you have prob...
GL1800 Adjustable Effect Owl LED - WingStuff.com Owl Knight Rider has proprietary software imbedded in a microchip on a waterproof circuit board to operate different Display Modes. Simply wave your ...
Thrashing out with B.C. Rich Beast NT and Boss GT-10 Here I am playing with my Beast Neck-Thru and my Boss GT-10 processor. I'm playing some of my originals and also a part of "Fade to Black" and "The C...
Dual Display Mode In this video I discuss what Dual Display Mode is, and also how it works and the way you set it up on your Mac. It's very simple and easy to use. I u...
Nikon D300 Advanced menu walk through 1 of 6, tips, tricks Sorry, except for the 10 minute clips this segment is uncut. It's about an hour total. I walk through the most frequently used features of the D3...
Nikon D90 - Advanced Playback Displays Everyone knows how helpful the LCD screen is for image playback and review, and the Nikon D90 offers five full pages of information on each image - b...
SureShift and motoscope ChronoClassic in action SureShift is a stand allone gear indication unit which can also act as a shift light. The displayed gear is calculated from the speed to RPM ratio....
How to get PSPWXP 3.8 onto PSP The website that you will need to download the ZIP file: http://www.savefile.com/files/1216258 Step 1. Download the file. Step 2. Extract it to yo...




Search This Site:










mailmerging from dnn

forms authentication

class design w/daab

asp.net: move value from one webform to another

debuging with internet esplorer 7

help - force a update/refresh of asp applic to a database?

overcoming layout limitations

detect the mistake please

menus seem slower in dnn 2.1.2

shared environmnet

how does your code know if you're in preview mode?

sql server does not exist or access denied.

convert asp to html

how to jump to specific part of a page (bookmark)

performance issues scheduler dnn 3.1.1

calling server.htmlencode from my class file

windowsidentity and windowsprinciple

2 persistent cookies on the same site

setting masterpage controls during page load

fill a dropdownlist

login - can't retrieve username and password

cookie web.config infection

skin preview images showing up as broken image links, using dnn3.1

web custom control and project time support...please help me!

inserting data into an access database using asp.net

how to build application.exe

error:directory does not exist or not accessible because of security settings !

tree view control with column sortable and non data checkbox control

[2.0] - database support

break when value changes

 
All Times Are GMT