I apologize if this question has been asked, but I can’t find a question for this anywhere.
I would like to use jquery on my asp.net page, but should I just register a new script? Add a link? Is there some special reference I can add?
scottgu states that it’s integrated into visual studio, but doesn’t describe how to get started adding it to a page?
I don’t claim to be an expert, but according to my recent research, something like this is best?
But the documentation states
“Call the IsClientScriptIncludeRegistered method to determine whether a client script include with a given key and type pair is already registered and avoid unnecessarily attempting to add the script.” it does also mention “The benefit of checking is to reduce unnecessary computation.” So, maybe something like this is better:
That seems dumb though, because if I call
It does the same thing as if I just do it once.