?
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
Medium Priority
?
381 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 1500 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

801 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