Am having a little confusion.
I have an external javascript file in my project under the Scripts folder named as Hierarchy.js…
This external jscript file contains some 3-4 different functions with one being KeySelected.
Now I need to call this very function in the OnClientItemSelected property of an AJAX autocomplete extender in a user control inside the folder named as User Controls.
Will this work :
OnClientItemSelected="KeySelected"
Or do i need to write the whole path?
Also, a thing to note, folders Scripts and User Controls are in the same project.
Suggestions and assistances are highly appreciated.
-Anurag
Make sure the the
Hierarchy.jsis linked to the document:You don’t need to use any “path” to point the
KeySelectedfunction, all functions (if not part of other object) are loaded to global namespace, soOnClientItemSelected="KeySelected"should work.See this article: Using the AutoComplete Extender