Solved

On master file in asp.net where do i put the link and client side script?? please help - thanks

Posted on 2011-03-14
3
380 Views
Last Modified: 2012-06-21
Where do you add the following, link and sript
   
    <link href="../jquery/Calendar.css" rel="stylesheet" type="text/css" />  

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $("#datepicker").datepicker();
        });


following is my master file, kindly show where would the the above code go?  I have tried to put it at different places but gives me an error.
please help,

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="deleteme1.aspx.cs" Inherits="AceSA_12_12_2009.Examples.deleteme1" %>
   
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">



</asp:Content>
0
Comment
Question by:goodk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
gamarrojgq earned 500 total points
ID: 35134999
Hi,

The code and link will be inside the HEAD tag, but the markup that you post is not your master file, but a child page that USE a masterpage. This "~/MasterPage.master"   will be your masterpage and there is where you have to put the script and link, It will be something like this

<Head>

<link href="../jquery/Calendar.css" rel="stylesheet" type="text/css" />  

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $("#datepicker").datepicker();
        });

</Head>

0
 

Author Closing Comment

by:goodk
ID: 35138052
the answer I was looking for is how to do it on the child page?
0
 
LVL 13

Expert Comment

by:gamarrojgq
ID: 35139359
Ok, to do it in the childPage just put the code inside the CONTENT tag like this

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<link href="../jquery/Calendar.css" rel="stylesheet" type="text/css" />  

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $("#datepicker").datepicker();
        });

</asp:Content>
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question