Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How can i include Jquery.js in master page?

How can i include Jquery.js in master page?

Scheduled Pinned Locked Moved ASP.NET
javascriptquestionsysadmintoolsxml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    buffering83
    wrote on last edited by
    #1

    I have Master Page.

    i insert jquery to head tag like this but I think that page can't load jquery_min.js file. How can i slove this?
    (Below is master page)
    <head runat="server">
    <script type="text/javascript" src="common/scripts/jquery_min.js"></script>
    I want to load Jquery script when page load

    Because I have to use below code.

    (Below is master page)

    <script type="text/javascript">
    $(document).ready(function () {
    $.get('../common/path.xml', function (data)...........
    });

    hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~

    R 1 Reply Last reply
    0
    • B buffering83

      I have Master Page.

      i insert jquery to head tag like this but I think that page can't load jquery_min.js file. How can i slove this?
      (Below is master page)
      <head runat="server">
      <script type="text/javascript" src="common/scripts/jquery_min.js"></script>
      I want to load Jquery script when page load

      Because I have to use below code.

      (Below is master page)

      <script type="text/javascript">
      $(document).ready(function () {
      $.get('../common/path.xml', function (data)...........
      });

      hi My english is a little. anyway, nice to meet you~~ and give me your advice anytime~

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #2

      Not entirely sure what your problem is. You can certainly reference the jquery script file in your master page and, in fact, should do so. What error are you getting? Perhaps the path to the script is incorrect.

      "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups