views:

30

answers:

0

Hi,

On validating my site with W3C, I noticed that the DataPager control was rendering a inside a , which is invalid HTML.

I want to create a custom server control which derives from the DataPager control. To do this, I believe I will have to modify the RenderControl function.

My question is, will I have to recreate the entire RenderControl function from scratch? Is there any way I can just replace the creation of the < span > with a < div >? The current output of the function is merely the below:

 Protected Overrides Sub RenderContents(ByVal output As HtmlTextWriter)

   output.Write(Text)

 End Sub

Cheers, WT