When I type it here :-
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<link href="Skins/SkinCustom/Editor.Default.css" rel="stylesheet" type="text/css" />
</asp:Content>
Its says Element Link cannot be nested within div...how am I supposed to link my css files ??
Add a ContentPlaceHolder in your master's head
tag:
<head>
<asp:ContentPlaceHolder ID="head" runat="server"></asp:ContentPlaceHolder>
</head>
Then in your content page:
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="Skins/SkinCustom/Editor.Default.css" rel="stylesheet" type="text/css" />
</asp:Content>
If your master page does not provide a content placeholder in the <head>
section (ed: and you can't edit it) , you may be out of luck.
Have a look at the master page source and see what other content placeholders are available.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.