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
376 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
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
gamarrojgq earned 500 total points
Comment Utility
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
Comment Utility
the answer I was looking for is how to do it on the child page?
0
 
LVL 13

Expert Comment

by:gamarrojgq
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now