Instead of overriding the Render method, you may want to
override the RenderContents method.
Olivier
>-----Original Message-----
>try something like this
>
>if(Style != null)
>{
> writer.write("<span style\"" + Style + "\">");
> writer.write("Your display text");
> writer.write("</span>"
>}
>
>hd
>
>"msnews.microsoft.com" <> wrote in
message
>news:OX9%...
>> This seems like it should be easy (and maybe it is)
but I can't figure it
>> out.
>>
>> I have a custom web control (derived from
>> System.Web.UI.WebControls.WebControl)
>> I'm in Grid Layout mode so at design time the HTML in
the .aspx page looks
>> like this:
>>
>> <cc2:CAUTreeView id="cautv" style="Z-INDEX: 101;
LEFT: 16px; POSITION:
>> absolute; TOP: 224px" runat="server"
Width="50px"></cc2:CAUTreeView>
>>
>> In my override of Render I want to get the style
attribute so I can output
>> the same positioning information so the control
renders in the exact spot
>> that it was designed in. I can't find any way to get
at this at run-time.
>>
>> Any ideas?
>>
>> </joel>
>>
>>
>
>
>.
>
|