Mayfield Global Knowledge Center

Google

Category » JavaScriptrss button

There were 3 questions found in this category:

  1. questionHow do I add my custom Javascript files to ASP.NET AJAX enabled website?
    In your .aspx file add a script manager control with a reference to your javascript file: <asp:ScriptManager ID="ScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Path="MyJavaScriptFile.js" /> </Scripts></asp:ScriptManager> If you are using master pag ...
  2. questionHow do I create an array in JavaScript?
    Arrays can be created with the Array() constructor function. Once you create the array, any number of indexed elements can be easily assigned to the array: var array1 = new Array();array1[0] = "JavaScript is cool!";array1[1] = 10.5;array1[2] = false;array1[3] = { x:10, y:5 }; Arrays can also be ...
  3. questionI am utilizing master pages in my ASP.NET AJAX enabled web site. How do I load my custom JavaScript files when needed?
    If you are using ASP.NET 2.0 master pages and utilizing ASP.NET AJAX framework, you may want to include the ScriptManager control on your master page instead of on individual pages. However when referencing other JavaScript files, you may run into problems. You would also need to reference all ...