Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Nick Goloborodko #1
Need help with base.Style collection in custom control
Hi,
Here's my situation: I'm developing a custom control, which basically
consists of two nested <DIV> tags. Now, i need to obtain base.Style object,
in order to get the positioning information, if the control is being
positioned via ABSOLUTE positioning.
I have tried to used base.RenderBeginTag() and base.RenderEndTag() but the
the base tag is a <SPAN> an that goes against XHTML formatting rules.
So my question is: how do i either make a base tag s <DIV> tag instead of a
<SPAN>, or how do i obtain a valid inline CSS string from base.Style
preperty? (I tried base.Style.ToString() but that just returns the type of
the object. I also tried foreach loop on the object, but that collection
doesn't have an iterator defined)
TIA
Nick Goloborodko
Nick Goloborodko Guest
-
Collection Property in web custom control
Hi all, I'm building a custom control. I would like that on the control you can set some 'rights' For that I have an enum: public enum... -
Custom Control - Collection Property
Hey gang. I am taking the task of trying to learn how to write custom web controls. I have started with inheriting from the VS 2005 default which... -
Collection Property of Another Custom Server Control
Hi, I read more and figured out how to build what I needed: <cc> <item></item> <item></item> </cc> when <item> is an editable control in... -
Multiple Collection Properties in a Custom Control
I am attempting to create control with 2 collection properties that are persisted with mode PersistenceMode.InnerProperty. When I create the... -
Custom Control nad Collection property
I have a collection-property on my control. I Add the items through a collection editor, and items tags appears. <bugge:Control>... -
Wilco Bauwer #2
Re: Need help with base.Style collection in custom control
You can derive from WebControl and one of the constructor overloads.
For example:
HTH.Code:.... public MyControl() : base("div") {} or public MyControl() : base(HtmlTextWriterTag.Div) {}
--
[url]http://wilcoding.xs4all.nl[/url]
Wilco Bauwer Guest
-
Nick Goloborodko #3
Re: Need help with base.Style collection in custom control
Wilco Bauwer wrote:
Thanks :) You've saved me alot of time :)> You can derive from WebControl and one of the constructor overloads.
> For example:
>
>>Code:> ... > public MyControl() : base("div") {} > or > public MyControl() : base(HtmlTextWriterTag.Div) {} >
> HTH.
>
> --
> [url]http://wilcoding.xs4all.nl[/url]
Nick Goloborodko Guest



Reply With Quote

