tags:

views:

115

answers:

3

How can i display the task details performed within a particular date when i click on said date in the calendar control.

Example:

  • I click on Jan 5 in the calendar and then i get the task performed on that date.

I am using C# and ASP.NET (2008)

A: 

Assuming you have a table with tasks and assigned dates, create a DataSet with a TableAdapter for said table, and use an ObjectDataSource on your page that takes the selected calendar day as a param and returns the rows to a GridView.

orthod0ks
+2  A: 

store task with date in database. write select statement that has date parameter and return task on given parameter. Onclick event return data from executed procedure and display result.

Dedrick
A: 

Add in your calendar with the OnSelectionChanged event

<asp:calendar ID="myCalendar" runat="server" onselectionchanged="myCalendar_SelectionChanged"></asp:calendar>    
</form>

Then on click load in your Task

protected void myCalendar_SelectionChanged(object sender, EventArgs e)
    {
        // Load your task    
    }
hunter