Author: Meeko2010 | Posted on: 4/3/2010 5:13:49 AM | Views : 311

Hi there,
How do i set a RangeValidator where the MinimumValue and MaximumValue are obtained from the database.


Scenario:
Project ABC Start date: 1/1/2010; End Date: 5/30/2010 (format: MM/dd/yyyy)
Therefore i would like the activities to be in between the Project ABC's start and end dates.
eg1: Activity A100 Start date : 1/2/2010; End Date :1/20/2010 (format: MM/dd/yyyy) -->Valid
eg2: Activity A500 Start date : 5/20/2010; End Date :6/2/2010 (format: MM/dd/yyyy) -->Invalid


How do i retrieve the dates for Project ABC's start and end date from the database and make it as the MinimumValue and MaximumValue?


The following are parts of my codes for now:
PM_NewActivity.aspx
<asp:TemplateField HeaderText="Plan Start Date" SortExpression="PlanStartDate">      &n ...

Go to the complete details ...