I have a webdayview control (Infragistics proprietary ASP.net control) on my page. On the aspx source I've inserted some javascript (webdayview_click - clientside click event) that calls a webmethod in the codebehind. This seems to work fine, but when I insert this webdayview control into a user control and move the corresponding javascript into the aspx of the user control, it doesn't work. I can't even insert a breakpoint into the javascript function to debug it. Is there a way to make it work? I want to enable the click event of the webdayview control so that when I click on it, the javascript function calls the webmethod. Here's my code (remember it is inside a user control):
Aspx:
<script>
<!--
function WebDayView1_Click(oDayView, oEvent, element)
{
PageMethods.SetAppointmentInfo(oDayView.getSelectedActivity().getDataKey())
}
// -->
</script>
<igsch: ...
Go to the complete details ...