Dear all,
I am using master page for my website.
& for child webform i need to use script tag & style tag for using JQuery datepicker.
So I am trying to place all the script & style tag in Head part of master page but its not coming.
Can anybody tell me what is the problem with this?
Loading


Krishna GaradRank #191 · 12.8K reputationPosted Apr 2, 2012, 8:44 PM EDT
SIVARank #2,303 · 613 reputationPosted Apr 3, 2012, 1:57 AM EDT
SenthilkumarRank #387 · 6.5K reputationPosted Apr 3, 2012, 8:24 AM EDT
Including in the master page is not an issue. It will render for all the child pages.
But i guess the problem with the url.
this may solve your issue.
SIVARank #2,303 · 613 reputationPosted Apr 4, 2012, 3:45 AM EDT
I tried alot with above options but i m unable to get it..
actually i need to place JQuery Datepicker in child form.
If i ll not integrate with master page then its working fine.
If i go for master page the issue begins..
I placed all the scripts & styles in head part of master page as follows
<
link rel="stylesheet" href='<%= this.ResolveClientUrl("~/Styles/jquery-ui-1.8.18.custom.css") %>'/><link rel="stylesheet" href='<%= this.ResolveClientUrl("~/Styles/demos.css") %>' />
<script type="text/javascript" src='<%= this.ResolveClientUrl("~/Scripts/jquery-1.7.1.js") %>'>script>
<script type="text/javascript" src='<%= this.ResolveClientUrl("~/Scripts/jquery.ui.core.js") %>'>script>
<script type="text/javascript" src='<%= this.ResolveClientUrl("~/Scripts/jquery.ui.widget.js") %>'>script>
<script type="text/javascript" src='<%= this.ResolveClientUrl("~/Scripts/jquery.ui.datepicker.js") %>'>script>
<script type="text/javascript">$(function() {
$("#txtDate" ).datepicker();
});
script>
Can you resolve this issue or else can i get any sample for this?
Thanks
Keyur Narkhi62 reputationPosted Apr 6, 2012, 12:01 AM EDT
You can create a another content place holder which includes the CSS and Javascript which common to all pages.
Example
In master page you can do something like that.
ID="Stylesheets" runat="server"> rel="stylesheet" href="/css/master.css" type="text/css" /> In child pages you can override CSS using this content place holder. Hope this helps. Thanks