Thursday, February 7, 2013

Javascript intellisense was not working in visual studio environment. The project already had a reference to ajaxcontroltoolkit, after searching on web for nearly an hour I got below walkthrough by microsoft which works like miracle :) Wish they had added this intellisense by default, after all I just wanted to see simple dom objects like document.getElementById()

Add reference to ajaxcontrol toolkit to your project and add below code at top of the page

<asp:ScriptManager ID="ScriptManager1" runat="server">
  <Scripts>
    <asp:ScriptReference Path="JScript.js" />
  </Scripts>
</asp:ScriptManager>

Also, to automatically complete highlighted word in intellisense uncheck Tools -> Options -> Text Editor -> JScript -> Miscellaneous -> Only use tab or enter to commit.


Reference: http://msdn.microsoft.com/en-us/library/vstudio/bb385674(v=vs.100).aspx

No comments:

SSL Error - The connection for this site is not secure

 After cloning a git repo of dot net framework website and trying to run it all I could see was this error Turns out the fix was to simply e...