Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:616862
More Search Options
RSS Available
Matching Posts
Re: How can I add custom Verbs to WebParts?
Hi Joe Yes I get the idea. :-) But I still feel I am working in the dark on this problem. I implemented using the Constructor WebPartVerbCollection(cleared) ; , however I received this error message: A WebPartVerb has already been added with ID ''. Parameter name: verbs Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException
Posted to
Web Parts and Personalization
(Forum)
by
millbuilder
on 7/28/2005
Re: How can I add custom Verbs to WebParts?
Hi Joe Thanks for your response. I have tried your suggestion. However, I received the following error messages Error 1 'System.Web.UI.WebControls.WebParts.WebPartVerbCollection' does not contain a definition for 'Add' Error 3 No overload for method 'WebPartChrome' takes '0' arguments Can you access an Add method in WebPartVerbCollection? Are you working with a newer version of ASP.NET? Regards Michael
Posted to
Web Parts and Personalization
(Forum)
by
millbuilder
on 7/27/2005
Re: How can I add custom Verbs to WebParts?
Hi Joe Thank you for your reply. I think it would be a good idea with an "AllowDelete" = true/false. On the MSDN lab site it states that only the user who created the webpart can delete the webpart. However, how do I allow all or some users permission to delete a certain webpart? One solution would be to create a custom delete verb that can be set on the webpart depending on the users permissions. In this case I would need to hide the built in "Delete" verb via something like "AllowDelete" = false
Posted to
Web Parts and Personalization
(Forum)
by
millbuilder
on 7/26/2005
Re: How can I add custom Verbs to WebParts?
Hi Joe This is my custom WebPart. In it I have created a new Verb - "Edit Content" Even though I set the "allows" to false: this .AllowClose = false ; this .AllowHide = false ; this .AllowMinimize = false ; this .AllowEdit = false ; The Delete verb is still shown in the WebPart. But the "Delete" button does work. First when this .AllowClose = true ; then the Close button also appears and the "Delete" button suddenly works. I would appreciate any help you can give me. Regards Michael ------------
Posted to
Web Parts and Personalization
(Forum)
by
millbuilder
on 7/25/2005
Re: How can I add custom Verbs to WebParts?
I have had a lot of trouble with verbs. I do not have any problem with adding new verbs, but I do not seem to be able to shake the existing / standard verbs. You write that I should just add to the constructor of my Custom webpart the following, this .AllowClose = false ; this .AllowHide = false ; this .AllowMinimize = false ; this .AllowEdit = false ; but for some reason the Verbs "Close" and "Delete" always appear ! Does anyone have any ideas? Thanks in advance Michael
Posted to
Web Parts and Personalization
(Forum)
by
millbuilder
on 7/20/2005
Re: EdenMachine et al: Cell padding around webparts
Hej there I do not expect that Microsft will correct this bug. In my case I have solved it as follows. The padding problem for me is only relevant when in Browse mode so I have simply "switched" off the chrome when in this mode. In other words when in Browse mode the Chrome simply not rendered, including Padding:5px;! Hope this helps Michael ----------------------------------------------- public class ConsoleWebPartZone : System.Web.UI.WebControls.WebParts. WebPartZone { WebPartManager currentConsoleWebPartmanager;
Posted to
Web Parts and Personalization
(Forum)
by
millbuilder
on 7/19/2005
Re: EdenMachine et al: Cell padding around webparts
Hi What is the point of having the WebPartChrome object if it can't be used to set the padding? I am desperate to find a solution to this problem as not be able to control the padding of the elements within a WebZone creates major problems for any designed element that requires exact positioning. Do you have any work arounds? Can I somehow remove the code by overriding a method? Can I somehow use a template as described in Fredrik Normans blog? http://fredrik.nsquared2.com/viewpost.aspx?PostID=248
Posted to
Web Parts and Personalization
(Forum)
by
millbuilder
on 7/18/2005
Re: EdenMachine et al: Cell padding around webparts
I am sitting with the same problem. I am working on an application where I need to position the webparts exactly. Padding 5px here and Padding 2px there results in no control at all! I would also be happy to hear if anyone has any workarounds. Is it possible to replace the padding:5px; and cellpadding="2" before it is rendered to the browser. I am 100% sure that I am not using these values in any of the HTML in my webparts nor template files, so there should be no conflicts. Thanks Michael
Posted to
Web Parts and Personalization
(Forum)
by
millbuilder
on 7/18/2005
Page 1 of 1 (8 items)
WindowsClient:
HTTP 403.9 with ADO.NET Data Services
WindowsClient:
xml syntax highlighting in Silverlight
Channel 9:
Channel 9 Emerges in China
WindowsClient:
Overlaying Icons on the Windows 7 Taskbar with WPF 4
Channel 9:
The Outlook calendar starts in 1601 - But Why?
ASP.NET:
Bytes by MSDN: Brad Abrams Interview with Billy Hollis: Silverlight 4, RIA Services and VS2010
Mix Online:
Pictures or it Didn't Happen
Channel 9:
Reactive Extensions API in depth: even more Zip
TechNet Edge:
SDL For Agile
Mix Online:
Test Lab Note
Channel 9:
Enabling Help in the Visual Studio 2010 Shell
Channel 9:
Office Casual - Smart Art
WindowsClient:
Prism and MEF
IIS.NET:
Overcoming the Challenges Enterprises Face with Streaming Video
Silverlight:
MEF, Silverlight and the HVP
TechNet Edge:
Client and Cloud Security
TechNet Edge:
Client and Cloud Security
Channel 9:
Building on Azure: Persistent Systems
Channel 9:
Building on Azure: Persistent Systems
TechNet Edge:
AD RMS Certificate Hierarchy and the Protection Process
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online