Wednesday, 8 October 2008

Got this error: syntax error. _getAbbrMonthIndex using auto complete extender

All the solutions I searched for suggested there was an error with my JavaScript or code. They were right!

My problem rose because I had a control on a page which had a script manager proxy control and a bunch of autocompleteextender control's, these extender controls used a scriptpath that pointed to a static web method (page method) on the page that retrieved the nessacary data.

The error arose becuase I was adding to my script manager proxy class a reference to the same page method programtically in the page load method. Anyway removing the programatic inclusion to the script manager solved the problem.

Thought this may help others debug any similar scenarios.

No comments: