adding controls dynamically at runtime

  • Thread starter Thread starter Mark Siffer
  • Start date Start date
M

Mark Siffer

I am trying to add a compare validator at runtime. I would add it before
but my input controls are built at runtime via an editable datagrid.
Therefore, the names of the controls are not known until the page has been
rendered. Any ideas?

Thanks in advance
MS
 
set CompareValidator1.ControlToCompare and
CompareValidator1.ControlToValidate after creating your controls.

Av.
 
The problem I am running into is that if you don't set those properties you
can't have the ruant=server property set either. And if you leave that off,
then you get a compile error in the code page that tries to reference the
CompareValidator1
 
Back
Top