jazzIIIlove
asked on
adding <head> tag in an aspx file which has no <head> tag (aim is to put google analytics, adsense)
Hi there;
I have several aspx files and need to add google analytics and sense code. According to intel, I need to put those in between <head></head> tags.
The problem is that my aspx files have no <head> tag.
Which line numbers should i put the <head> tags in both examples?
Regards.
I have several aspx files and need to add google analytics and sense code. According to intel, I need to put those in between <head></head> tags.
The problem is that my aspx files have no <head> tag.
Which line numbers should i put the <head> tags in both examples?
Regards.
//Ex 1:
<%@ Page Title="" Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:ScriptManager ID="smBlatte" runat="server">
</asp:ScriptManager>
<div id="fb-root">
</div>
<script> (function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
} (document, 'script', 'facebook-jssdk'));
</script>
<div class="wrapper">
<div class="container">
<div class="content">
<div id="featured_slide">
<ul id="featurednews">
<asp:PlaceHolder ID="phFeaturedNews" runat="server"></asp:PlaceHolder>
</ul>
</div>
//Ex 2:
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="MasterPage.master"
CodeFile="ManageCategory.aspx.cs" Inherits="Admin_ManageCategory" Theme="default" %>
<%@ Register Src="~/Category/Category.ascx" TagName="Category" TagPrefix="uc" %>
<asp:Content ID="ContentChild" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<script type="text/javascript">
document.getElementById("menuCategory").className = "active";
</script>
<uc:Category ID="Category1" runat="server" />
</asp:Content>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.