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

Keyur NarkhiPosted Apr 6, 2012, 4:01 AM
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.
SIVAPosted Apr 4, 2012, 7:45 AM
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
SenthilkumarPosted Apr 3, 2012, 12:24 PM
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.
SIVAPosted Apr 3, 2012, 5:57 AM
Krishna GaradPosted Apr 3, 2012, 12:44 AM