views:

4

answers:

0

Hi, I am creating a custom server control in which I place a RequiredFieldValidator. In the the Render method and I want to dynamically create a RequiredFieldValidator and render it to the HtmlTextWriter.

The problem is, when I call RenderControl on the RequiredFieldValidator, it only generates a span for me with no javascript or client side code.

How can I completely render a RequiredFieldValidator to an HtmlTextWriter?

Thanks in advance.