Hi,
not using built-in rendering methods means that your control can't adapt to
the client browser (it sends fixed HTML). Even though using pure rendering
is the more effective approach but have you considered using composition as
you use such HTML elements whose functionality is already covered by some
built-in controls (Buttons,ListBox)?
About composite server controls:
http://aspalliance.com/359
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"VR" <> wrote in message
news:u$...
> Hi, I'm developing a custom control and as the control is getting it's
final
> form (and I was starting to getting crazy with that
> RenderBeginTab/RenderEndTag) I tryed sth a little bit different as the
code
> found in MS samples in MSDN, could anyone tell me if is there any problem
> using this approach?
>
> Protected Overrides Sub Render(ByVal output As
> System.Web.UI.HtmlTextWriter)
> output.Write(MyHTML)
> End Sub
>
> Private Function MyHTML() As String
>
> Dim strHTML As String
> strHTML = "<table border='1'>" & _
> "<tr>" & _
> "<td valign='top'>" & _
> "<select id='ValuesList'>" & _
> "<option value='option01'>option01" & _
> "</select>" & _
> "</td>" & _
> "<td rowspan='2'>" & _
> "<select id='ValuesSelected' multiple>" & _
> "<option value='option01'>option01" & _
> "</select>" & _
> "</td>" & _
> "</tr>" & _
> "<tr>" & _
> "<td>" & _
> "<input type=button value='Adiciona'
> id='btnAdiciona'>" & _
> "<br>" & _
> "<input type=button value='Remove'
> id='btnRemove'>" & _
> "</td>" & _
> "</tr>" & _
> "</table>"
>
> Return strHTML
>
> End Function
>
>
> Thanks a lot,
> Victor
>
>
>