2009-10-31 6 views

Répondre

1

Votre masterpage peut avoir un lien de script dans le fichier Jquery de base:

<html> 
<head runat="server" > 
    <title>Master page title</title> 
    //link to Jquery script 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> 
    <asp:contentplaceholder id="Head" runat="server" /> 
</head> 
<body> 
. 
<asp:contentplaceholder id="Main" runat="server" /> 
. 
</body> 

page ASPX peut avoir d'autres liens de scripts spécifiques à la page ne

<% @ Page Language="C#" MasterPageFile="~/Master.master" Title="Content Page 1" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server"> 
    //other scripts specific to this page only 
    <script type="text/javascript" src="js/jquery.plugin.abc.js"></script> 
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server"> 
    Main content. 
</asp:Content> 

Questions connexes