CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 5/19/2005 8:17:47 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 76 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
PLBlum
Asp.Net User
What is the property SetDesignModeState on the Control class?5/19/2005 8:17:47 PM

0/0

The brief documentation to System.Web.UI.Control.SetDesignModeState() says two slightly different things but neither is enough to know what purpose this serves:

"Sets design-time data for a control. "

"The SetDesignModeState method saves design-time data for a control."

Any ideas?


--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
SimonCal
Asp.Net User
Re: What is the property SetDesignModeState on the Control class?6/1/2005 4:43:39 PM

0/0

The designer state allows you as a control-designer developer to store state for a control designer instance/component instance that will persist view-switch, IDE and document closures. Therefore if you need to retain a particular setting for a control-designer, e.g in. template editing, you can have this persist through the view-switch.

Here's a concrete example. Imagine a tab control that has three tabs, each represented by a template say. The control-designer for that control might expose these on the design-surface without the standard template editing UI provided by the tool, but allows the click operation on atab button to switch the template. The designer could then simply generate a editable region for that template to make the experience close to the control's runtime experience. So, for the designer-state, the control-designer might want to retain the actual tab index. Then a page developer would be presented with the 'view' on the control in a state that it was left in.
 
To accomplish this therefore in a control-designer it's a simple case of using the dictionary

DesignerState["MyKey"] = _tabIndex;







Simon
This posting is provided "AS IS" with no warranties, and confers no rights.
PLBlum
Asp.Net User
Re: What is the property SetDesignModeState on the Control class?6/1/2005 4:58:54 PM

0/0

Hi Simon,

Thanks for that. Unfortunately, a lot more information is needed:
1. While you have attempted to give an example, "in template editing", because I haven't done this kind of thing before, I don't recognize what you are referring to especially as it pertains to saving data. What kind of data does Microsoft store on a control that uses this method?
2. Let's suppose I get the reason for it. I still have no idea what to do. Is this called to save? If so, how does it restore? What kind of data can be put into what I assume is the IDictionary parameter? Where is it stored?
I realize that the docs will be expanded eventually and hope that they will thoroughly cover these questions.
--- Peter Blum
Creator of Professional Validation And More Suite, Peter's Date Package, and Peter's Polling Package
www.PeterBlum.com
3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ASP.NET 2.0 Black Book: black book Authors: Dreamtech Software, Dreamtech Software, Charul Shukla, Anil Kumar Barnwal, Dreamtech Software India, Pages: 1167, Published: 2006

Web:
Menu Methods (System.Web.UI.WebControls) (Overrides Control.SetDesignModeState(IDictionary).) ... stored in the control's StateBag object. This object is accessible through the ViewState property. ...
ObjectDataSource Methods (System.Web.UI.WebControls) .NET Framework Class Library. ObjectDataSource Methods. Updated: November 2007 .... SetDesignModeState, Sets design-time data for a control. ...
Wouter van Vugt : Developing a templated control designer in ASP ... The Control base class of the DuoView control provides a method which can be ... The control needs to override the SetDesignModeState method in order for it ...
BaseValidator Methods (System.Web.UI.WebControls) SetDesignModeState, Sets design-time data for a control. ... Validate, Performs validation on the associated input control and updates the IsValid property. ...
FileUpload Methods The methods of the FileUpload class are listed below. .... IControlDesignerAccessor.SetDesignModeState (inherited from Control). IControlDesignerAccessor. ...
SecureImagePipe Class Members SetDesignModeState (Inherited from System.Web.UI.Control). Protected Method ShouldSerializePragmaNoCache, Indicates whether the PragmaNoCache property ...
TabContainer Class Members Spring.Web.UI.Controls Namespace : TabContainer Class .... SetDesignModeState ( Inherited from System.Web.UI.Control). Protected Method ...
ASP.NET AJAX > Server Reference > System.Web.UI Namespace > Timer ... Minimal)> _ Public Class Timer _ Inherits Control _ Implements ..... Adding a Timer control with a small value in the Interval property can generate ...
AjaxLoadingPanel Class Members Telerik.WebControls Namespace : AjaxLoadingPanel Class .... SetDesignModeState, (Inherited from System.Web.UI.Control). Protected Method ...
PasswordRecovery Class The e-mail message is sent using the MailDefinition class. ... By default, the ID property of the PasswordRecovery control is used as the name of the ...




Search This Site:










setting the position of a control

find all the controls placed according to the tabindex set at design time of the page.

xml edit grid download empty

property grid control

datagrid paging in composite server control

submit button in user control , usercontrol in placeholder

custom datagrid control, can anyone please shed some light on this?

pop3 control

listitemscollection

webformdesigner.addclientscripttodocument in asp.net 2.0

component controls

user control events

measuring bandwidth using asp.net(c#) programmatically

want to pass data from an aspx wep page to the windows ce device on which the page is open

event handler on dynamicly created buttons not fired

usercontrol events

the code directory??

validators within composite control

can't access webcontrol.page from subclass

reuse of validationexpression in regularexpressionvalidator

another tool

opening isa ports

simple colorpick control

arraylist as datasource for datagrid

addhandler on form contrls dropdownlist

recommend dedicated or semi-dedicated host?

vs.net intellisense / schema validation for custom template control

webcontrol as a property of a custom control

why is runat=server required?

how to automate the creation of multiple sub-domains

  Privacy | Contact Us
All Times Are GMT