vytla 0 Newbie Poster

hi every one
i am using calendar control i am trying to display the selected day events in panel for this the code written below the calendar event not getting raised

protected void Calendar1_SelectionChanged(object sender, EventArgs e)
    {
        ContentManagement.ContentManagementSoap contentManagementService = new ContentManagement.ContentManagementSoapClient();
        GetAllEventsByTypeRequest request = new GetAllEventsByTypeRequest();
        request.Body = new GetAllEventsByTypeRequestBody();
        request.Body.Type = "Hostel";
        request.Body.date = Calendar1.SelectedDate;
        GetAllEventsByTypeResponse response = contentManagementService.GetAllEventsByType(request);
        if (response != null && response.Body != null && response.Body.GetAllEventsByTypeResult != null)
        {
            GenerateEvents(response.Body.GetAllEventsByTypeResult);
        }
    }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.