A
Alex Nitulescu
Hi.
What's the difference between the Render method (overridden when creating
custom controls) and the RenderContents method.... (overridden when creating
custom controls) ?
From MSDN:
Render - Sends server control content to a provided HtmlTextWriter object,
which writes the content to be rendered on the client.
Overridable Protected Sub Render( ByVal writer As HtmlTextWriter )
RenderContents - Renders the contents of the control into the specified
writer. This method is used primarily by control developers.
Overridable Protected Sub RenderContents( ByVal writer As HtmlTextWriter )
So.... to me, it's not any clearer than before reading these "helpful"
lines. To me, they are just the same.
Thank you,
Alex.
What's the difference between the Render method (overridden when creating
custom controls) and the RenderContents method.... (overridden when creating
custom controls) ?
From MSDN:
Render - Sends server control content to a provided HtmlTextWriter object,
which writes the content to be rendered on the client.
Overridable Protected Sub Render( ByVal writer As HtmlTextWriter )
RenderContents - Renders the contents of the control into the specified
writer. This method is used primarily by control developers.
Overridable Protected Sub RenderContents( ByVal writer As HtmlTextWriter )
So.... to me, it's not any clearer than before reading these "helpful"
lines. To me, they are just the same.
Thank you,
Alex.