Of course. You can set any property you want programmatically. All you need
to know is the string that goes into RangeValidator.Maximim which is
compatible with its Type property. (Type=Date in this case.)
In Page_Load, use:
RangeValidator1.Maximum = DateTime.Today.ToShortDateString()
--- Peter Blum
www.PeterBlum.com
Email:
PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
"Tarun Mistry" <no****@nospam.com> wrote in message
news:O9**************@TK2MSFTNGP09.phx.gbl...
Hi everyone, i have a range validator set to date mode. However, I want
the max date to be whatever it is right now, is there a way of setting
this within the properties of the range validator?
Thanks,
Taz