R
Robert Wallström
Hi everyone..
I am trying to biuld a control wich should have simulare behavior as
htmlcontrols.htmlgenericcontrol,
buy that I ment to get the inner part of my control to be gridlayout
enabled.
I know howto make this posible in runtime, BUT how do one make this possible
in design-time?
To make it more clear I need my control's start tag to be something like
this (in design-time):
<asp:mycontrol runat=server
style="ms_positioning=gridlayout">....</asp:mycontrol>
The htmlgenericcontrol has this behavior but how do I enble it in design
mode of my custom server control.??
I might mention that my designer class derrives from
'ReadWriteControlDesigner' and I have the following attributes set before my
class head:
[Description("Holds Drag drop objects"),
Designer(typeof(DragDropDesigner)),
ParseChildren(false),
PersistChildren(true),
ToolboxBitmap(typeof(DragDropContainer)),
ToolboxData("<{0}ragDropContainer runat=server
I have tryed to use the getDeesignTimeHtml() method, but I read
somewere(deja.com) that since my designer derrives from
ReadWriteControlDesigner.. It wont help.
I have also tryed to supply my 'ms_psotion=gridlayou' in :
ToolboxData("<{0}ragDropContainer runat=server
style="ms_positioning=gridlayout"></{0}ragDropContainer>")]
Also with no luck..
Any guidens is helpful..
Thank you..
I am trying to biuld a control wich should have simulare behavior as
htmlcontrols.htmlgenericcontrol,
buy that I ment to get the inner part of my control to be gridlayout
enabled.
I know howto make this posible in runtime, BUT how do one make this possible
in design-time?
To make it more clear I need my control's start tag to be something like
this (in design-time):
<asp:mycontrol runat=server
style="ms_positioning=gridlayout">....</asp:mycontrol>
The htmlgenericcontrol has this behavior but how do I enble it in design
mode of my custom server control.??
I might mention that my designer class derrives from
'ReadWriteControlDesigner' and I have the following attributes set before my
class head:
[Description("Holds Drag drop objects"),
Designer(typeof(DragDropDesigner)),
ParseChildren(false),
PersistChildren(true),
ToolboxBitmap(typeof(DragDropContainer)),
ToolboxData("<{0}ragDropContainer runat=server
</{0}ragDropContainer>")]
I have tryed to use the getDeesignTimeHtml() method, but I read
somewere(deja.com) that since my designer derrives from
ReadWriteControlDesigner.. It wont help.
I have also tryed to supply my 'ms_psotion=gridlayou' in :
ToolboxData("<{0}ragDropContainer runat=server
style="ms_positioning=gridlayout"></{0}ragDropContainer>")]
Also with no luck..
Any guidens is helpful..
Thank you..