I need to add a RangeValidator into my ASPX upon runtime. I can create a RangeValidator with:
RangeValidator myval = new RangeValidator();
And add values to it. I can also access items on the page i.e.:
HtmlTableRow myRow = (HtmlTableRow)Page.FindControl("page1").FindControl("tr-row");
myRow .Controls.Add(myval);
I cant add a rangevalidator here though as "TR can not accept children controls of this type. Where can I add it? I cant add it to my pages main form as I have ASPX code blocks which will fall over if I use runat=server for the form.