Click here to Skip to main content
15,911,306 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted

You can also keep that on child form, it will just give you warning.
it works properly!!!
 
Share this answer
 
Comments
SIVA RAMAMOORTHY 2-Apr-12 11:59am    
but its not working..
i placed script & styles in content place holder of child form
Take 2 content place holder in master.

ASP.NET
<head id="Head1" runat="server">
    <asp:contentplaceholder id="head" runat="server" xmlns:asp="#unknown">
    </asp:contentplaceholder>
</head>
<body>
 <asp:contentplaceholder id="Main" runat="server" xmlns:asp="#unknown"></asp:contentplaceholder>
</body>


In Head tag you can include common script files and css.

If you wants to include any script in child page, than you can include within "Head1" Content place holder.
 
Share this answer
 
Hi..@shiva

Please check the following points

1)Path to the scripts
2)Place it on the head part
3)Please check the preinit event for the css where you are initializing the master page.
4)check the css path.

Hope it will help you

Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900