I have taken taken two labels namely FromDate and ToDate and two datetime picker for FromDate and ToDate respectively. I have to select particular date from FrmoDate and TDate (say I have selected 1/5/2012 as FromDate and 30/5/2012 as Todate). And based on this range I have to display top 5 rows from database(sqlserver). If I select another date range I have to display last 5 rows from database(sqlserver).
Please help me How can I code this ?
Please reply as soon as possible
Keep Up with TechRepublic