|
| |
| Fredrik N | Asp.Net User |
| Re: OnClick Design mode | 8/10/2004 2:55:38 PM |
0 | |
|
Set the WebPartManager's DisplayMode property to DesignDisplayMode.
/Fredrik Norm?n NSQUARED2 Microsoft MVP, MCSD, MCAD, MCT CornerstoneMy Blog, ASP.Net 2.0 etc |
| Fredrik N | Asp.Net User |
| Re: OnClick Design mode | 8/11/2004 4:01:15 PM |
0 | |
|
When the mode is set to DesignDisplayMode, you can drag around webparts. If you want to get the the WebPart that are moved, you can use the WebPartManager's WebPartMoved event. This event will be executed when the WebParts has bean moved to a new zone.
/Fredrik Norm?n NSQUARED2 Microsoft MVP, MCSD, MCAD, MCT CornerstoneMy Blog, ASP.Net 2.0 etc |
| mharder | Asp.Net User |
| Re: OnClick Design mode | 8/16/2004 6:55:36 PM |
0 | |
|
There is no way to drag and drop WebParts in BrowseDisplayMode. http://blogs.msdn.com/mharderThis posting is provided "AS IS" with no warranties, and confers no rights. |
| Fredrik N | Asp.Net User |
| Re: OnClick Design mode | 8/24/2004 3:26:08 PM |
0 | |
|
The WebPart will still be working even if you change the mode to the desing mode.
/Fredrik Norm?n NSQUARED2 Microsoft MVP, MCSD, MCAD, MCT CornerstoneMy Blog, ASP.Net 2.0 etc |
| mharder | Asp.Net User |
| Re: OnClick Design mode | 8/24/2004 9:12:04 PM |
0 | |
|
I think the best workaround would be to always have the WebPartManager in DesignMode instead of BrowseMode. For example, you could write a derived WebPartManager and override the DesignMode property getter, so that it returns DesignDisplayMode instead of BrowseDisplayMode. http://blogs.msdn.com/mharderThis posting is provided "AS IS" with no warranties, and confers no rights. |
| Fredrik N | Asp.Net User |
| Re: OnClick Design mode | 8/25/2004 10:29:23 AM |
0 | |
|
Where did you try to get the Name (which event)? If you use the WebPartPageMenu, the mode is set after the Page_Load event. So if your try to get the Name of the current view in the Page_Load, you will get the previous mode. If you change the mode programmatically before your get the Name of the DisplayMode, you should get the correct name. You can also get the current name of the mode, within the Page_PreRender event.
/Fredrik Norm?n NSQUARED2 Microsoft MVP, MCSD, MCAD, MCT CornerstoneMy Blog, ASP.Net 2.0 etc |
| Fredrik N | Asp.Net User |
| Re: OnClick Design mode | 8/25/2004 12:05:16 PM |
0 | |
|
You can hook up to the WebPartManager's DisplayModeChanging and DisplayModeChanged.
/Fredrik Norm?n NSQUARED2 Microsoft MVP, MCSD, MCAD, MCT CornerstoneMy Blog, ASP.Net 2.0 etc |
| mharder | Asp.Net User |
| Re: OnClick Design mode | 9/9/2004 9:11:05 PM |
0 | |
|
There are 2 solutions that may work for you:
1. Override RenderHeader() and don't render anything. If you still can't get this to work for you, please post a repro so I can investigate.
2. Override the DisplayTitle property to return String.Empty.
-Mike http://blogs.msdn.com/mharderThis posting is provided "AS IS" with no warranties, and confers no rights. |
| Fredrik N | Asp.Net User |
| Re: OnClick Design mode | 9/10/2004 9:52:17 PM |
0 | |
|
If you are talking about the "box" with a gray border around the Webpart, you can remove it by overriding the RenderBody method of the WebPartZone class. But if you leave this empty, not WebParts will be displayed. You have to render the webpart:
For example:
protected override void RenderBody(HtmlTextWriter writer)
{
....
foreach (WebPart webpart in this.WebParts)
{
this.CreateWebPartChrome().RenderWebPart(writer, webpart);
}
....
}
If you want to change the way the Webpart are rendered (if it should have border, and how the order should look like etc), you can create your own WebPartChrome class by inherits the WebPartChrome class and override the CreateWebPartChrome method and make it return you chrome.
/Fredrik Norm?n NSQUARED2 Microsoft MVP, MCSD, MCAD, MCT CornerstoneMy Blog, ASP.Net 2.0 etc |
| esbenr | Asp.Net User |
| Re: OnClick Design mode | 6/4/2006 12:33:44 AM |
0 | |
|
Hi
In the properties for the webzone set the headertext to at blank space (yes its a bad solution but i does the job). Now the title of the webzon has gone.
Then set the borderstyle to "NotSet" or "None"
Thats it. the extra space caused by the designview has been reduced - at least. |
|
| |
Free Download:
Books: Developing Microsoft Office Solutions: Answers for Office 2003, Office XP, Office 2000, and Office 97 Authors: Ken Bluttman, Pages: 586, Published: 2003 The Web Programmer's Desk Reference: A Complete Cross-reference to HTML, CSS, and JavaScript Authors: Lazaro Issi Cohen, Lázaro Issi Camy, Joseph Issi Cohen, Pages: 1085, Published: 2004 Essential ASP .NET 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2007 Foundations of Digital Signal Processing: Theory, Algorithms and Hardware Design Authors: Patrick Gaydecki, Institution of Electrical Engineers, Pages: 462, Published: 2004 Practical .NET2 and C#2: Harness the Platform, the Language, the Framework Authors: Patrick Smacchia, Pages: 896, Published: 2006 Beginning Visual Basic 2005 Authors: Thearon Willis, Bryan Newsome, Pages: 799, Published: 2005 Beginning Excel Services Authors: Liviu Asnash, Eran Megiddo, Craig Thomas, Pages: 404, Published: 2007 Beginning VB.NET: Unmasking Visio for Enterprise Architects Authors: Richard Blair, Matthew Reynolds, Jonathan Crossland, Thearon Willis, Pages: 888, Published: 2002 Beginning C# 2008 Databases: From Novice to Professional Authors: Vidya Vrat Agarwal, James Huddleston, Ranga Raghuram, Syed Fahad Gilani, Jacob Hammer Pedersen, Jon Reid, Pages: 482, Published: 2008 Practical JavaScript, DOM Scripting, and Ajax Projects Authors: Frank Zammetti, Pages: 546, Published: 2007 Web:OnClick Design mode - ASP.NET Forums OnClick Design mode. Last post 06-03-2006 8:33 PM by esbenr. 16 replies. Sort Posts:. Oldest to newest, Newest to oldest ... designMode = "on" and onclick event on HTML elemen • mozillaZine ... mozilla developer center wrote: A further difference for Mozilla is that once a document is switched to designMode, all events on that particular document ... onclick event in iFrame with designMode="on" - WebDeveloper.com onclick event in iFrame with designMode="on" JavaScript. Attachment – dojo – Trac 510, var handle = dojo.connect(this, "onClick", this, function(){. 511, this. document.designMode = 'on';. 512, dojo.disconnect(handle); ... Document design Mode : document « Javascript Objects « JavaScript ... Document design Mode : document « Javascript Objects « JavaScript DHTML. ... < button onclick="alert(document.designMode);">Design Mode Status ... designMode="on" for iframe - event handler on radio/checkbox input ... Mar 28, 2008 ... I have an iframe inside a page, this iframe has the designMode property ... I tried to set a onfocus, onclick, onselect in the input tag ... JAVASCRIPTS :: Iframe Inside Another Iframe (with DesignMode="on") I have an iframe A with designMode = "on". I inserted another iframe B ..... onClick event handler to submit the form, because we use a mouseover effect. ... Search Results – Xinha – Trac designMode == 'on') return false;}catch(e){} window.open(", "onclick=\"window. open("); html = html.replace("onclick=\"try{if(document.designMode && ... Nabble - Mozilla - Editor - designMode="on" for iframe - event ... designMode="on" for iframe - event handler on radio/checkbox input type not ... I tried to set a onfocus, onclick, onselect in the input tag itself but ... WebPartManager.DisplayMode Property (System.Web.UI.WebControls ... If you switch to design mode, you can drag the server controls from one zone to ... ID="Button1" runat="server" Text="Browse Mode" OnClick="Button1_Click" ... Videos: Web Applications and the Ubiquitous Web Google TechTalks
February 1, 2006
Dave Raggett
Dave Raggett is currently a W3C Fellow from Canon, and W3C Activity Lead for Multimodal ... |
|
|
|