Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Henri #1
Isn't DataGrid.Render(writer) supposed to automatically call RenderBeginTag(writer) and RenderEndTag(writer)?
Hi,
I'm trying to customize a DataGrid adding custom rows before the endTag
</TABLE>, and also some html before and after the control itself.
So I wrote :
'************************************************* ***********
Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
writer.Write("html to render before base control")
MyBase.Render(writer)
writer.Write("html to render after base control")
End Sub
'************************************************* ***********
Public Overrides Sub RenderEndTag(ByVal writer As HtmlTextWriter)
writer.Write("html to render before base control's closing tag")
MyBase.RenderEndTag(writer) 'supposed to write </TABLE>
End Sub
But it doesn't work as RenderEndTag si never called by
MyBase.Render(writer).
So what's RenderEndTag() for then if it's not always called by default by
the Render method?
Did I miss something?
How can I write something before DataGrid's </TABLE> then?
Thank for your help
Henri
Henri Guest
-
CF7 Report Writer
I'm heavily into developing reports with the new report writer as a convert from Crystal Reports. I'd like to report any bugs/problems I find with... -
PDF Writer
Hi, I have had to reinstall my Acrobat Version 5. Previously when I clicked on print I would be offered a choice of using PDF writer or distiller.... -
Writer not working
I installed acrobat 5.05 and my applications say that the writer is not installed. Is that a separate process. The instructions that say I can... -
CD Writer
Anyone know of any manufacturers of external CD writers for a Blade2000 running Solaris8 thanks -
Sharing CD Writer
Now I've resolved all my networking problems, can I write files from my laptop directly to the CD writer on my desktop over the network? Phil -
Henri #2
Re: Isn't DataGrid.Render(writer) supposed to automatically call RenderBeginTag(writer) and RenderEndTag(writer)?
It's OK, I finally understood my mistake by myself! :-)
Henri
"Henri" <hmfireball@hotmail.com> a écrit dans le message de
news:e5fJ5oQaEHA.3756@tk2msftngp13.phx.gbl...> Hi,
>
> I'm trying to customize a DataGrid adding custom rows before the endTag
> </TABLE>, and also some html before and after the control itself.
> So I wrote :
>
> '************************************************* ***********
> Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
>
> writer.Write("html to render before base control")
>
> MyBase.Render(writer)
>
> writer.Write("html to render after base control")
>
> End Sub
> '************************************************* ***********
> Public Overrides Sub RenderEndTag(ByVal writer As HtmlTextWriter)
>
> writer.Write("html to render before base control's closing tag")
>
> MyBase.RenderEndTag(writer) 'supposed to write </TABLE>
>
> End Sub
>
> But it doesn't work as RenderEndTag si never called by
> MyBase.Render(writer).
> So what's RenderEndTag() for then if it's not always called by default by
> the Render method?
> Did I miss something?
> How can I write something before DataGrid's </TABLE> then?
>
> Thank for your help
>
> Henri
>
>
>
>
>
Henri Guest



Reply With Quote

